Skip to main content

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

ParameterDescription
BaseObjectThe character in front of whom the object will be spawned
S1ObjectId of the game object to spawn
S2Optional "StateGroupId,StateId" (comma-separated) to apply after spawning
F1Distance in front of the character to spawn the object (in cm)

Examples

DescriptionBaseObjectCommandS1F1
Spawn a gift box 200cm in front of SelfSelfSpawnGameobjectToFrontGiftBox_01200
Spawn a table 150cm in front of TargetTargetSpawnGameobjectToFrontTable_Wood_01150
Spawn a chair 100cm in front of SelfSelfSpawnGameobjectToFrontChair_Simple_01100