Skip to main content

Execute_SpawnFakeObject

Description

Spawns a Fake Object by duplicating the properties of the BaseObject (game object). The original object is unregistered from the site, and the fake object is registered with System ownership. This is primarily used for seizure and foreclosure systems.

Note

Spawning is skipped if the object has DoNotSpawnFakeObjectTag, has the Ceil placement flag, or no valid located site can be determined. When BaseObject is Self, the site is derived from the Target character's location; when BaseObject is Target, the site is derived from the Self character.

Parameters

ParameterDescription
BaseObjectThe game object whose properties are duplicated to create the fake object.
S1First state name parameter passed to the fake object's state change on spawn.
S2Second state name parameter passed to the fake object's state change on spawn.

Examples

DescriptionBaseObjectCommandS1S2
Spawn a fake object from Self; Target character provides the site contextSelfSpawnFakeObjectSeizedActive
Spawn a fake object from Target; Self character provides the site contextTargetSpawnFakeObjectSeizedActive
Spawn a fake object and transition it to a custom stateSelfSpawnFakeObjectRepossessedDisplayed