This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Define: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Group Definitions
 
TangenT (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


== Code ==
== Code ==
{|
|
  define my_group
  define my_group
   
   
Line 13: Line 15:
   # meshbox
   # meshbox
   # meshpyr
   # meshpyr
  # arc
  # sphere
  # tetrahedron
  # teleporter
   
   
  enddef
  enddef
 
|-
|
  #You can then recall the group with
  #You can then recall the group with
   
   
  group my_group
  group my_group
   shift 0 0 0
   shift 0 0 0
  rotation 0
  end
  end
 
|}
A more detailed description of the group installation can be found [[group|here]].
A more detailed description of the group installation can be found [[group|here]].


Line 29: Line 37:
==History==
==History==
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:Map Making]]
[[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

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

There are currently no supported editors: group definitions are normally most useful when editing by hand.

History

The group definition object was added with the v2.0.0 release of BZFlag.