celery 8 Posted June 9, 2010 I'm trying to make an AI squad run towards its destination without stopping even if it's under fire. I've added "Never fire" to the waypoint and disableAI "TARGET";disableAI "AUTOTARGET" to the units' init lines and even setCaptive true to the other side's soldiers and still they stop to aim at enemy troops when they're being shot at. How can I make them forget about everything else and concentrate on running? Share this post Link to post Share on other sites
Fuzzy Bandit 10 Posted June 9, 2010 Maybe try setting Behaviour to "CARELESS" and Speed to "FULL"? Share this post Link to post Share on other sites
celery 8 Posted June 9, 2010 Maybe try setting Behaviour to "CARELESS" and Speed to "FULL"? They still stop, and with careless they occasionally walk slowly with their weapons lowered. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted June 10, 2010 With small groups you could try limitSpeed or forceSpeed. Unfortunately "CARELESS" is one mode that insists on using formation "COLUMN". For large groups it takes a while to get organized until the start picking up speed. On each waypoint: {x limitSpeed 40} forEach units group this If you shoot one of the members in the leg however, speedmode full seems to have no effect, as leader will slow down to his speed. So you might want to handle their damage while escaping. It sucks not being able to control things yourself. Share this post Link to post Share on other sites
Jelliz 10 Posted June 10, 2010 (edited) EDIT: nevermind, was already mentioned. Edited June 10, 2010 by Jelliz Share this post Link to post Share on other sites
tj72 0 Posted June 10, 2010 You could try: create a new group for each squad member. Then send them the movement orders and see what happens. Join them back to the group when they get to destination. Its the only way I could get them to move when I told them to with scripting commands. Share this post Link to post Share on other sites
NeMeSiS 11 Posted June 10, 2010 Or just temporarily group them to the enemy so they wont see their 'enemies' as enemies. If you still want them to be shot at you could use some invisible targets for the enemies i guess. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted June 10, 2010 Won't they see themselves as enemies and open up on eachother? Remember I tried something like that once and literally fell off my chair :D Unfortunately invisible targets is something you need addons for. Share this post Link to post Share on other sites
f2k sel 163 Posted June 10, 2010 You could try:create a new group for each squad member. Then send them the movement orders and see what happens. Join them back to the group when they get to destination. Its the only way I could get them to move when I told them to with scripting commands. Not quite the same but something close, I have a group with a waypoint on them set to dismissed and when they come under fire I have a trigger set to this. {_x setbehaviour "careless";_x domove getpos glogic;_x dotarget glogic} foreach units grpname They seem to still be grouped but ignore formation upto a point. You need a game logic or something they can move to and target. You may have to rejoin them when safe to do so. One thing I would like to know is how to setformation dismissed as it only seems to work in waypoints. . Share this post Link to post Share on other sites
NeMeSiS 11 Posted June 10, 2010 Won't they see themselves as enemies and open up on eachother? Remember I tried something like that once and literally fell off my chair :DUnfortunately invisible targets is something you need addons for. Well, not if you use invisible targets that arent enemies to anyone, yet you still script your enemies to shoot at them. And you could just use game logics i think. Though its too much work for my taste. :p Share this post Link to post Share on other sites
Junker 0 Posted June 11, 2010 have you tried removing the units ammo ? Share this post Link to post Share on other sites
st_dux 26 Posted June 11, 2010 It sounds stupid, but put the AI in stealth mode and force them to stand with setUnitPos "UP". They will generally just sprint from cover to cover like this. Share this post Link to post Share on other sites