When Object is Created
Fires when an object is generated or spawned into the world.
Introduction
When Object is Created event in the Script Editor Image The When Object is Created event in the Script Editor. caption When Object is Created is an event in the DIY group of World Events. It fires when an object is generated or spawned into the world. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it when you want something to happen automatically as soon as an object is spawned into the world. Every spawned object gets a birth moment: this event fires when the object appears, and its opposite is When Destroyed . Objects that come from spawners instead of the map arrive through When Prop is Added or When Vehicle is Picked Up , and the creation rules are configured with the Object Logic guide.
Parameters
None This event has no parameters. The event fires on its own and everything you need is the object running this script. Parameter Description
How to Access
How to Access - Event When Object is Created
How to Use
Select the object, press Propertie (the blue equalizer icon) in the bottom action menu, and scroll to the bottom of the properties panel. Press Add Component and pick the Group component; its block stacks below the existing properties with the When Creating event inside it. Press the + button below the event to add a script, then press Edit on that script to open the script editor and build the actions that should run when the event fires. Press Play and let the object spawn, then check that the actions run.
Example
When Object is Created node example screenshot-2026-10-11-051536.webp Example: Give the new object a random color. caption
Common Uses
Play a spawn effect when a prop or enemy appears Auto-configure objects that are spawned mid-game Start follow or patrol logic for spawned NPCs
Tip
It runs for every spawn instance, keep the connected actions light if the object spawns often.