Hey all,
I'm having trouble with running a function that needs to run across multiple instances.
Basically, I want each soldier to call the "Attack" function, while passing in the Attacker and Defender as parameters. What I have below works fell for 1 pair of Soldiers, but as soon as I include more, that's when I run into problems.
If a pair is fighting, as soon as a new pair collides, they override the function and the previous pair stops fighting.
My question is, how do I get the objects to run the functions independently of one another? I had the variables set to non-static before, but they were getting reset to 0 and I therefore couldn't recall the Attack action for them to continue fighting.
Any help would be appreciated!
EDIT: Would the Store Instance behavior be of any use here?
[attachment=0:1ruc293l][/attachment:1ruc293l]