Devastator_cm 434 Posted November 17, 2016 Hi Guys, how can I make AI to replace his head buddy at gunner? I unassign the deadone Do action ["GetOut" and then allowGetIn false After they are out I do allowGetIn true but they don't obey my comannd! Grrrr They are under fire sometimes so I tought maybe because of bullets coming to them makes them scared so tried disableAI "fsm" which also didn't help In peace or war they simply carry that dead guy with the vehicle around.. setpos on deadbody also didn't work out Share this post Link to post Share on other sites
Midnighters 152 Posted November 17, 2016 Have you tried just forcing the replacement gunner into the vehicle slot? It should just move the body out of the car or into a different seat,. Share this post Link to post Share on other sites
Devastator_cm 434 Posted November 19, 2016 yes that one exchanged the seats. It is kind of ok if the unit is inside the vehicle. What to do in case I want to replace the gunner with a unit which is outside?assigning to gunner position is not letting him go in and take that dead body out. Btw, did I open the thread in wrong secion by mistake or someone moved it? :) Share this post Link to post Share on other sites
jstibbsy 54 Posted November 19, 2016 Maybe have a clean up script running to delete the unit. Share this post Link to post Share on other sites
Devastator_cm 434 Posted November 19, 2016 deleting unit will make the scenario unrealistic :) I want to keep the dead body, but on the ground Share this post Link to post Share on other sites
johnnyboy 3745 Posted November 19, 2016 deleting unit will make the scenario unrealistic :) I want to keep the dead body, but on the ground Check out JBOY Fall From Vehicles script. You can find what you need in there. Its specific to certain vehicles, and only those positions that makes visual sense for unit to fall from (helicopter bench, side of zodiac, back of offroad). But you can extract the code you need to work on whichever vehicles and gunner positions you want. The trick was to create an invisible unit and move that unit into the vehicle position, which forces dead unit out. Share this post Link to post Share on other sites
Devastator_cm 434 Posted November 19, 2016 That is a nice idea :) 1 Share this post Link to post Share on other sites
Devastator_cm 434 Posted November 20, 2016 By the way I just discovered that, outside units can replace dead bodies if they get in with the waypoint "GETIN" attached to the vehicle. Share this post Link to post Share on other sites