This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing FlagStay
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The FlagStay plugin allows a mapmaker to specify the zone where he/she wants the flag to be. This is similar to a regular zone but with this FlagStayZone the flags that are put in the zone may not leave the zone. This plugin may be useful so a player won't take a Guided Missile flag out of a tower. Or a ShockWave flag can't be taken into a Base and camp there. To define the FlagStayZone use the examples below. | |
+ | <nowiki> | ||
+ | For a box that goes from +- 10 in X, +- 20 in Y, and 0 to 30 in Z that keeps GM and SW | ||
+ | |||
+ | FlagStayZone | ||
+ | bbox -10 10 -20 -20 0 30 | ||
+ | Flag GM | ||
+ | Flag SW | ||
+ | end | ||
+ | |||
+ | For a cylinder that centered at X 10 Y 20 that goes from Z 0 to Z 10 with a radius of 100. | ||
+ | |||
+ | FlagStayZone | ||
+ | cylinder 10 20 0 10 100 | ||
+ | Flag GM | ||
+ | Flag SW | ||
+ | end</nowiki> |