This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "Define"
From BZFlagWiki
m (Put code in a table for formating reasons) |
m (→Code) |
||
(One intermediate revision by one other user not shown) | |||
Line 17: | Line 17: | ||
# arc | # arc | ||
# sphere | # sphere | ||
+ | # tetrahedron | ||
+ | # teleporter | ||
enddef | enddef | ||
Line 25: | Line 27: | ||
group my_group | group my_group | ||
shift 0 0 0 | shift 0 0 0 | ||
+ | rotation 0 | ||
end | end | ||
|} | |} | ||
Line 35: | Line 38: | ||
The group definition object was added with the [[BZFlag 2.0.0|v2.0.0]] release of BZFlag. | The group definition object was added with the [[BZFlag 2.0.0|v2.0.0]] release of BZFlag. | ||
− | [[Category: | + | [[Category:Map Making]] |
[[Category:Map_Objects]] | [[Category:Map_Objects]] |
Latest revision as of 20:19, 18 March 2007
Group Definition, or define, will group a set of objects that can be recalled and duplicated multiple times with the group object.
Define goes hand-in-hand with the group object.
Code[edit]
define my_group # You can put the following objects in a group definition: # box # pyramid # base # mesh # meshbox # meshpyr # arc # sphere # tetrahedron # teleporter enddef |
#You can then recall the group with group my_group shift 0 0 0 rotation 0 end |
A more detailed description of the group installation can be found here.
Editor Support[edit]
There are currently no supported editors: group definitions are normally most useful when editing by hand.
History[edit]
The group definition object was added with the v2.0.0 release of BZFlag.