this should work from what i can rember about how the if works, but doesnt
Code: Select all
#include "zcommon.acs"
int KillHim;
script 1 (void)
{
KillHim=1;//player hits switch, variable is now one
}
script 2 (void)
{
If(KillHim==1);{Thing_Damage(0, 999, 0);}//should only work when KillHim is one, but works all the time
}