|
Post by zerochaos98 on Sept 2, 2017 7:15:53 GMT
Just wondering by chance is it possible to have an enemy character AI that can change its primary target?? So like if i wanted it to go after player one but player 2 gets in its way it then chases player 2?
|
|
|
Post by zerochaos98 on Sept 3, 2017 1:18:32 GMT
Sorry if this was in the wrong area i didnt know if it was a script related thing or other wise
|
|
|
Post by Power Supersport on Sept 3, 2017 14:23:05 GMT
You can check for the distance between the enemy and the players to determine the closest target. You can check a distance between two points by using iVectorLength (Vector1-Vector2)
|
|
|
Post by TinSoldier on Sept 4, 2017 18:04:13 GMT
I believe if you have two or more targets connected to the AI it auto selects the closet target to follow, also with a script, you can change the targeting mode runtime.
|
|
|
Post by indiedev on Sept 5, 2017 10:01:44 GMT
for line of sight, use scanner.
|
|