Page 1 of 1

CLONE ACTOR TROUBLE

PostPosted: Thu May 22, 2008 10:01 pm
by blackguy95
well i having a problem with clone actors.
im making a strategy game where when you click on a soldier he will move to the closest enemy and attack it.
but theres one problem, when i click on them they all move to the same enemy and they go in the order they were created in.
so what im asking is how do you make an actor move to the closest "enemy" actor if the enemy actors are all clones?

Re: CLONE ACTOR TROUBLE

PostPosted: Fri May 23, 2008 12:24 am
by makslane
Try the getAllActorsInCollision function.

Read more here:
http://game-editor.com/docs/script_refe ... ncollision
viewtopic.php?f=2&t=874