Group Object
Work In Progress
We are working on updating and improving this documentation. Some information may be missing or inaccurate.
Description
After creating a definition block using the define object, the group object is used to place the block of objects somewhere in the world. It also makes it possible to swap teams and materials, add a tint, and
Attributes
| Syntax | Description |
|---|---|
| name <name> |
Sets the name of this object. In many cases, this does not have any purpose and may just be useful for documenting what the object is for. In some case, like for teleporters, this can be used to reference the object from other objects. |
| team <team_index> |
Replaces the team on any bases contained in the definition. |
|
tint <red> <green> <blue> [alpha] tint <color_name> [alpha] |
|
| phydrv <physics_driver> | |
| matref <material_name> | |
| matswap <old_material_name> <new_material_name> |
Syntax Examples
This is an example of a 4 team Capture The Flag (CTF) world that defines a team fort once and then places it four times using group.
options
-c
end
world
size 200
end
define fort
box
position 125 75 0
size 55 5 25
end
box
position 75 130 0
size 5 50 25
end
box
position 85 85 11.5
size 5 5 1
end
base
position 110 110 0
size 16 16 0.01
color 1
end
pyramid
position 75 75 25
size 5 5 35
passable
end
pyramid
position 75 175 25
size 5 5 25
passable
end
pyramid
position 175 75 25
size 5 5 25
passable
end
enddef
group fort
end
group fort
team 2
spin 90 0 0 1
end
group fort
team 3
spin 180 0 0 1
end
group fort
team 4
spin 270 0 0 1
end
This content is maintained on GitHub. We welcome any feedback and improvements!