Execute_SpawnGameobjectToFront
Description
Spawns the specified object at a given distance directly in front of the BaseObject character. The spawned object faces toward the character. Optionally applies a state after spawning.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character in front of whom the object will be spawned |
| S1 | ObjectId of the game object to spawn |
| S2 | Optional "StateGroupId,StateId" (comma-separated) to apply after spawning |
| F1 | Distance in front of the character to spawn the object (in cm) |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| Spawn a gift box 200cm in front of Self | Self | SpawnGameobjectToFront | GiftBox_01 | 200 |
| Spawn a table 150cm in front of Target | Target | SpawnGameobjectToFront | Table_Wood_01 | 150 |
| Spawn a chair 100cm in front of Self | Self | SpawnGameobjectToFront | Chair_Simple_01 | 100 |
Back to Command FinderSearch and filter all 399 Script Execution documents