Weapon (object)

From BZFlagWiki

Jump to: navigation, search

A weapon object is a BZW map structure that defines a fixed weapon effect. This is also called a world weapon.

Contents

[edit] Code

The code for a weapon object is as follows

weapon
 name example_weapon
 position 0.0 0.0 0.0
 rotation 0.0
 color 0
 tilt 0.0
 initdelay 10.0
 delay 10.0 3.0 5.0 3.0
 type V 
 trigger oncap
 eventteam 1
end

Valid parameters for a weapon object are:

namethe name of the weapon, generally unused.
positionthe position in world units for the effect to begin at
rotationthe orientation in degrees for the effect to fire in.
colorthe color the weapon should be. 1 - red 2 - green 3 - blue 4 - purple 0 - rogue
tiltthe vertical tilt in degrees for the effect to fire in.
initdelaythe delay to wait after the server starts before the effect is triggered.
delaya list of delays to loop through after the startup delay. (optional)
typethe FlagCode for the flag effect to use for the weapon.
triggerif a delay is not used, when to trigger the flag, currently only oncap is valid.
eventteamthe team to use when looking at oncap weapons. Use numeric values 1 - red 2 - green 3 - blue 4 - purple. Explodes when the flag of that team is captured.

The weapon object can be used as many times as desired on a map.

[edit] Appearance

The weapon object will produce a weapon effect that is exactly the same as similar effects produced by players.

[edit] History

The weapon object was added in v2.0.0.

[edit] Editor Support

The weapon object is only fully supported by the BZWTools blender plug-in.

Personal tools