Weaponswitch: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Weaponswitch exists for both player and userdef structure members. The player structure controls whenever the action will be made, while the userdef controls the options selected in the menu.
[[bitfield]]
[[bitfield]]



Revision as of 14:09, 9 June 2012

Weaponswitch exists for both player and userdef structure members. The player structure controls whenever the action will be made, while the userdef controls the options selected in the menu.

bitfield

1 = switch to weapon on pickup

2 = switch away when out of ammo

Setting the variable to zero will disable automatic weapon switching.

Example:

setplayer[THISACTOR].weaponswitch 0