Forza42 Posted September 30, 2011 Posted September 30, 2011 hi i d like to force a unit to stop moving. I don't want to use the ''Hold'' option inside a WP, because i want to stop unit when it detects enemies between WP. i've tried - deactivate : unit disapear.... - AI OFF : unit stop, but AI is off so it cannot shoot :D there is an option to RESUME, but there is no option to PAUSE .... like PAUSE then RESUME. is it possible to do that ? the scenario is simple : using the ''Unit inside moving zone'', i 've attached the unit to a trigger. Then, when the enemies is inside this trigger, i send a message ''unit detected ! smoke the unit done''. But, i d like to stop the unit to be sure A10 will clear the path before restart the route. thanks for help
Святой Posted September 30, 2011 Posted September 30, 2011 You can run any AI action at any time using triggers. Add "Hold" task into special list of actions (not to action list of a waypoint!) and create trigger.
Forza42 Posted September 30, 2011 Author Posted September 30, 2011 nice, i will test it ! thanks All AI Task used into the unit panel can be applied into the trigger Action ?
nomdeplume Posted September 30, 2011 Posted September 30, 2011 (edited) If you can add it to the group's triggered actions list then you can activate it from a trigger action. I'm not sure if they all make sense. For example if you activate an 'orbit' task on aircraft, do they begin orbiting at their current location or the location of the previous wp? Or do you get an error? It used to be that you'd get an error if you tried to activate a 'switch waypoint' command via trigger, don't know if that's been fixed. So, you can try anything you like, but it might not work. For your particular case, there's also a 'stop and deploy to target' trigger action which does what it sounds like it does. You can use 'group resume' to resume a group's movements after applying that command to it; 'group resume' also works for "hold" tasks (although you can also have them end due to any of the stop conditions assigned to the task). Edited September 30, 2011 by nomdeplume
Forza42 Posted October 1, 2011 Author Posted October 1, 2011 nice, it s working with the "deploy to template"
Recommended Posts