Gotweapon

From EDukeWiki
Revision as of 18:10, 7 September 2006 by TX (talk | contribs) (Example)
Jump to navigation Jump to search

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