onevent EVENT_WEAPKEY2
ifvare BARRACKSMENU 1
ifcount 26
{
resetcount
setplayer[THISACTOR].shield_amount 100
setactor[THISACTOR].extra 100
{
setvar BARRACKSMENU 0
addammo PISTOL_WEAPON 999
}
}
endevent
onevent EVENT_WEAPKEY5
ifvare BARRACKSMENU 1
ifcount 26
{
resetcount
setplayer[THISACTOR].shield_amount 200
setactor[THISACTOR].extra 200
{
setvar BARRACKSMENU 0
addweapon RPG_WEAPON 999
}
}
endeventBoth case work fine on there own, but if I am to go from EVENT_WEAPKEY5 back to EVENT_WEAPKEY2 it doesn't set my health and shield back to 100 but sets at random amounts till I have used the EVENT_WEAPKEY2 several times.
Ideally the plan is for classes, but I am unsure why it's not setting the correct health and shield amounts once switching between.

I have just gone from EVENT_WEAPKEY5 Class, to EVENT_WEAPKEY2 Class
The health and shield *should* be 100 each.

Help
Duke4.net
DNF #1
Duke 3D #1



