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
| Parameter | Description |
|---|---|
| BaseObject | The character who will receive the spawned food |
| S1 | Food ID (FoodTableRow Id) |
Examples
| Description | BaseObject | Command | S1 |
|---|---|---|---|
| Spawn PreparedCake01 and attach to Self | Self | SpawnNewFoodObject | PreparedCake01 |
| Spawn Soup01 food object for Target character | Target | SpawnNewFoodObject | Soup01 |
Back to Command FinderSearch and filter all 399 Script Execution documents