scifer 10 Posted March 25, 2011 (edited) I have a convoy whereupon its vehicles are all in the same group. One of this vehicles is a truck filled with civilians. How can I prevent this civilians from disembarking when the group is getting shoot? Edited March 26, 2011 by Foxhound Share this post Link to post Share on other sites
twirly 11 Posted March 25, 2011 (edited) I need to know this too. Working on a car bomber but he keeps getting out of the car in dangerous situations. He's going to blow himself up. I don't think a dangerous situation should matter much to him!! I have tried all the disableAI stuff....tried "CARELESS" and tried setSkill 0 and 1 to no avail. There must be something that makes him ignore his surroundings! Edited March 25, 2011 by twirly Correction Share this post Link to post Share on other sites
scifer 10 Posted March 25, 2011 (edited) I got it! Just used <unit> disableAI "MOVE" on the civilians. Edit: ups! Actually it didn't worked. Edited March 25, 2011 by scifer Share this post Link to post Share on other sites
twirly 11 Posted March 25, 2011 That won't work for me. My guys need to be able to move. If there is an explosion anywhere near these guys they just just jump out of the car and do the "Cops" thing....face down on the pavement! Share this post Link to post Share on other sites
demonized 20 Posted March 25, 2011 you can even disable all simulation with enableSimulation, and still they will get out of the vehicle and freeze in the air. It seems like nothing can prevent the AUTO AI disembark mechanism. Share this post Link to post Share on other sites
JojoTheSlayer 35 Posted March 25, 2011 I tried: vehiclename lock lock; & Con: ((damage vehiclename)>0.1) Act: vehiclename setdamage 0; That didnt ether work. Maybe check the Bennys CTI mission since that one spawns in AI vehicles with crew locked where the AI dosent get out even when they are really damaged for clues on this issue? Share this post Link to post Share on other sites
Tankbuster 1746 Posted March 25, 2011 Last time I tried this, locking the vehicle doesn't prevent AI jumping out. It'll stop them getting in though. It'd be useful if BI could make this work as expected. I'll check the IT later. setdamage is a clunky way of doing this. The handleDamage eventhandler might be better as it overrides the engine damage system. Crafting this would essentially make the vehicle invulnerable and might do what you want. http://community.bistudio.com/wiki/ArmA_2:_Event_Handlers#HandleDamage ---------- Post added at 11:30 ---------- Previous post was at 09:42 ---------- I just tested this again. Locking the vehicle does prevent both AI and player disembark. Share this post Link to post Share on other sites
demonized 20 Posted March 25, 2011 I just tested this again.Locking the vehicle does prevent both AI and player disembark. are you using official 1.57 or the new patch? Share this post Link to post Share on other sites
demonized 20 Posted March 25, 2011 (edited) alright then, lock is locking aparently Edited March 25, 2011 by Demonized Share this post Link to post Share on other sites
scifer 10 Posted March 25, 2011 Locking the vehicle does prevent both AI and player disembark. Unfortunately AI and player will disembark if ordered to. Share this post Link to post Share on other sites
Tankbuster 1746 Posted March 25, 2011 Unfortunately AI and player will disembark if ordered to. Not in the tests I did earlier. I command a squad to get into a bus. They got in, I locked it, I told them to get out and they couldn't. Share this post Link to post Share on other sites
scifer 10 Posted March 25, 2011 Not in the tests I did earlier. I command a squad to get into a bus. They got in, I locked it, I told them to get out and they couldn't. I'm running version 1.54 and AI units disembarked when commanded by AI. Share this post Link to post Share on other sites
Tankbuster 1746 Posted March 25, 2011 Why are you running 1.54? You won't get any first line support unless you're running latest. Share this post Link to post Share on other sites
igneous01 19 Posted March 25, 2011 i was thinking just group the civilians to become opfor or something (prob 0%) and that would stop them from auto leaving a vehicle. but looks like locking it works. Share this post Link to post Share on other sites
Rothwell 10 Posted March 26, 2011 try the CanUnloadInCombat script command. Here's the wiki page on it: http://community.bistudio.com/wiki/canUnloadInCombat EDIT: at least, it will help you troubleshoot Share this post Link to post Share on other sites
twirly 11 Posted March 26, 2011 I think the fix would be that "CARELESS" should mean "CARELESS"! That would help in so many different scenarios it's not funny. Share this post Link to post Share on other sites