🎯Conditions
Conditions allow you to check the state of your 3D scene or respond to events. Use these in Construct 3 Event Sheets to create interactive 3D experiences.
Object Conditions
On Object Created
objectTriggered when a new 3D object is successfully created in the scene.
Triggers when:
A new object is spawned or created
Parameters
Example Usage:
// On Object Created With placeholder "hero" -> Log "New object: " & object
Is Object Loaded In Scene
objectReturns true if the object with the specified placeholder is currently loaded in the scene.
Triggers when:
Checks whether a specific object is present in the scene.
Parameters
Example Usage:
// If Object with placeholder "enemyBoss" is loaded -> Play animation
On Object Destroyed
objectTriggered when an object is destroyed and removed from the scene.
Triggers when:
An object with the specified placeholder is destroyed or removed from the scene.
Parameters
Example Usage:
// On Object Destroyed with placeholder "barrel01" -> Spawn explosion effect
On Any Object Destroyed
objectTriggered when an any object is destroyed and removed from the scene.
Triggers when:
An any object destroyed or removed from the scene.
Example Usage:
// On Any Object Destroyed with placeholder "barrel01" -> Spawn explosion effect
On Object Failed Create
objectTriggered when a 3D object fails to be created in the scene.
Triggers when:
An object creation attempt fails due to invalid data, missing assets, or other errors.
Example Usage:
// On Object Failed To Create -> Log error or retry
Is Visible
objectCheck if an object is currently visible to the camera.
Parameters
Example Usage:
// Check if object is visible
Is Visible ("enemy_1") -> Enable AI Behavior
Scene Conditions
On 3D Scene Created
sceneTriggered when a new 3D scene is successfully created.
Triggers when:
A new scene is created and initialized in the engine.
Example Usage:
// On scene creation -> Log "Scene created successfully"
On 3D Scene Create Fail
sceneTriggered when a 3D scene fails to create due to an error or invalid input.
Triggers when:
A scene creation attempt fails.
Example Usage:
// On scene creation failure -> Log "Failed to create scene"
Animations
On Animation Clip Finished
animationTriggered when a specific animation clip finishes playing on an object.
Triggers when:
An animation clip finishes playing completely.
Parameters
Example Usage:
// On Animation Clip Finished for object "player" index 2 -> Trigger next action
On Animation Loop Finished
animationTriggered when an animation loop finishes playing on an object.
Triggers when:
An animation loop completes (e.g., a looping walk cycle ends its set loop count).
Parameters
Example Usage:
// On Animation Loop Finished for object "npc01" index 0 -> Switch to idle animation
For Each Animation
animationLoops through each animation available on a specified object.
Triggers when:
Iterates through all animations for a given object.
Parameters
Example Usage:
// For Each Animation on object 'enemy' -> Print animation name or index
Raycast
On Raycast Hit
objectTriggered when a raycast hits any object in the scene.
Triggers when:
A raycast intersects with an object.
Example Usage:
// On raycast hit -> Log "Ray hit object!"
Utils
Pick Object By Instace Id
utilsPicks Object instance by id( currently it picks only one object per block)
Parameters
Example Usage:
// On pick object "PlaceholderObject" with instance id 2 -> Log "Set Postion X to 5"
Usage Tips
Event Triggers vs State Checks
- ⚡ Event Triggers - Run once when something happens (On Object Created, On Model Loaded)
- 🔍 State Checks - Continuously check conditions (Is Visible, Camera Is Moving)
Performance Considerations
- Use state-checking conditions sparingly in Every Tick events
- Prefer event triggers for better performance when possible
- Cache condition results when checking the same thing multiple times
Parameter Types
- Object - Placeholder object(which can be any sprite or dedicated object which is developed alongside with this addon) identifier for specific objects
- comparison - Operators like
>
,<
,=
,>=
,<=
- margin - Float value for tolerance/buffer zones (0.0 to 1.0)