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
| Parameter | Description |
|---|---|
| BaseObject | The game object whose properties are duplicated to create the fake object. |
| S1 | First state name parameter passed to the fake object's state change on spawn. |
| S2 | Second state name parameter passed to the fake object's state change on spawn. |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Spawn a fake object from Self; Target character provides the site context | Self | SpawnFakeObject | Seized | Active |
| Spawn a fake object from Target; Self character provides the site context | Target | SpawnFakeObject | Seized | Active |
| Spawn a fake object and transition it to a custom state | Self | SpawnFakeObject | Repossessed | Displayed |
Back to Command FinderSearch and filter all 399 Script Execution documents