map_object
Labels map objects so triggers and actions can reference them by name.
megalo
map_object slayer_stuff
label "slayer"
end
map_object health_packs
type "health_station"
endBinding
Every filter needs one primary binding:
label— match any map object with this Forge label stringtype— match objects of this type from object lists
Optional criteria can further restrict the set:
team— match objects owned by a team designator, oreachfor every teamuser_data— match objects whose Forge user-data field equals this signed integermin— require at least this many matching objects (default0)
megalo
map_object flag_spawn_point
label "ctf_flag_spawn"
team each
end
map_object invasion_objective
label "inv_objective"
min 1
end
map_object phase_markers
label "phase_marker"
user_data 2
endteam accepts a multiplayer team designator (none, defenders, attackers, third_party, …, neutral) or each.
user_data on a map_object is a filter criterion. It is separate from the runtime current_object.user_data variable used in conditions and actions.
When used as a trigger kind (e.g. trigger health_packs), the trigger runs once per matching object with current_object set.
A script may declare at most 16 map object filters.
Base-derived scripts
map_object is full-script-only — it cannot be added in base-derived scripts.