Gotweapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Example
Line 1: Line 1:
Array holding boolean telling if the [[player] has the weapon
This is an array of values which specify whether the [[player]] has a certain weapon.
 
onevent EVENT_RESETWEAPONS
{
    ifvare MULTIMODE 1
    {
        ifvare VOLUME 0
        {
            ifvare LEVEL 0 // remove the player's pistol if they spawned in single player on E1L1
            {
                setplayer[THISACTOR].'''gotweapon''' ONE ZERO
                setplayer[THISACTOR].ammo_amount ONE ZERO
            }
        }
    }
}
endevent
 


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 18:10, 7 September 2006

This is an array of values which specify whether the player has a certain weapon.

onevent EVENT_RESETWEAPONS
{
    ifvare MULTIMODE 1
    {
        ifvare VOLUME 0
        {
            ifvare LEVEL 0 // remove the player's pistol if they spawned in single player on E1L1
            {
                setplayer[THISACTOR].gotweapon ONE ZERO
                setplayer[THISACTOR].ammo_amount ONE ZERO
            }
        }
    }
}
endevent