Stop killing when no bullets, if ammo = 0
Posted: Fri May 04, 2007 4:10 pm
if (Slash==1){ DestroyActor("Event Actor"); Score.textNumber = Score.textNumber + 30; Slash=0; }
I have created this type of code (with help from you guys) for the collision and scoring its working great, but need to add something that tells it not to destroy or collide with the NME actors if the ammo = 0.
I have tried a few ways even an actor with script if (ammo=0); and then various things like CollisionState("Event Actor", DISABLE); and others, but cannot get it to work, any help?
I'm sure its something pretty simple along these lines.. I hope
Thanks,
scythe
I have created this type of code (with help from you guys) for the collision and scoring its working great, but need to add something that tells it not to destroy or collide with the NME actors if the ammo = 0.
I have tried a few ways even an actor with script if (ammo=0); and then various things like CollisionState("Event Actor", DISABLE); and others, but cannot get it to work, any help?
I'm sure its something pretty simple along these lines.. I hope
Thanks,
scythe