Skip to main content

Execute_SpawnNewFoodObject

Description

Spawns a carriable FoodObject and attaches it to the BaseObject character as if the character picked it up.

Note

S2 (hand selection) is not currently used; the object is always attached to the right hand via pick-up logic.

Parameters

ParameterDescription
BaseObjectThe character who will receive the spawned food
S1Food ID (FoodTableRow Id)

Examples

DescriptionBaseObjectCommandS1
Spawn PreparedCake01 and attach to SelfSelfSpawnNewFoodObjectPreparedCake01
Spawn Soup01 food object for Target characterTargetSpawnNewFoodObjectSoup01