Quote: --- Original message by: DeadHamster
Oh man that's really really good.
what's the difference between look and lookint? That seems to be the difference between the two sections.
"lookint" is for when they are fighting, it makes them look at us but they can ignore the command if they want to because initiative is enabled. it overrides look which forces them to look at us when not in combat.
I have made updates to this. Flying units can now use ai_go_to_vehicle. Flying units do not use the move front, back, etc animations for moving, but they still need them in order to use this command.
We can also make them move to us based on our height by storing our and the ai's z value
(script static short DroneZ (object_data_get_real (unit (list_get (ai_actors red_elite_follow) DroneIndex)) position z))
(script static short PlayerZ (object_data_get_real (player0) position z)) https://youtu.be/NCMDXctjr3k
Drones have a longer follow threshold than the elites so they don't clutter eachother as they move.Edited by JadeMcLain on Feb 24, 2019 at 01:57 AM