(if (unit_get_current_flashlight_state (unit (list_get (players) 0))) true) (ai_follow_target_disable marines)
(if (unit_get_current_flashlight_state (unit (list_get (players) 0))) false) (ai_follow_target_players marines)
This is to make it so when the flashlight is on, the ai don't follow, and when it's off, they do. But it doesn't work, and I've tried
(ai_follow_target_players marines)
(ai_follow_distance 5)
and that doesn't work. The AI have auto migration checked.
Edited by Dark Ninja on Jul 31, 2008 at 04:37 PM