ReferenceScene Graph

Scene Graph Tags

Tag entities to find and group them later — mark spawn points, objective zones, or team props, then query by tag instead of hardcoding references.

Updated
The code on this reference page did not pass the latest compile check — verify it in your project.

Instead of dragging every spawn point into your code by hand, you can stick a tag on each one — and ask the scene to find them all later.

Think of a tag like a sticker you slap on a prop. When you open the chest later by asking for that sticker, the scene hands you back every prop that's wearing it.

First we define our own tag, spawn_tag, by extending tag. Inside OnBegin we call AddTag to stick that label on an entity. Then FindCreativeObjectsWithTag asks the scene for everything wearing spawn_tag, and we loop over each result.

Tag once in the editor or in code, then query by tag — your logic stops caring where props live or what they're named.

spawn_tag := class(tag){}
spawner_demo := class(creative_device):
    OnBegin<override>()<suspends>:void =
        Entity.AddTag(spawn_tag{})
        for (Obj : Entity.FindCreativeObjectsWithTag(spawn_tag)):
            Print("Found a spawn point!")

Build your own lesson with scene_graph_tags

Generate a personalized, compile-checked lesson grounded in this exact reference.

Build a lesson →