Yes, I would have said a global variable too. this bit where you shoot them and they do nothing is annoying isnt it? im trying to add as much realism to my game as possible, so this will come in handy.
Thanks.
EDIT
Dont worry, it was a stupid question and I removed it.
EDIT 2
Also, is there a way to generate a random intiger?
Why I ask is I want to say generate a random number from 1 to 3.
if the intiger is 1, for them to fight it out alone.
if the intiger is 2, they run.
if the intiger is 3, they call backup and then attack.
Thanks.
Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations