woodringsa
Member-
Content Count
5 -
Joined
-
Last visited
-
Medals
Everything posted by woodringsa
-
I have a mission where the player and their AI squad mates are routinely switching vehicles. I am trying to work towards a solution that will have the AI automatically get in to the same vehicle as the Player. I know that get in commands can be given, but would prefer, from both a speed and efficiency as well as immersion standpoints, to have the AI automatically recognize that the player is in a vehicle, and load up into that vehicle (seating arrangement doesn't matter). All vehicles in the mission will be 4+ seating, to accommodate the 4 man squad (player +3 mates). I am sure that there will be some level of performance hit with a script checking to see if the Player is in a vehicle. Any thoughts on how to best make this happen?
-
AI Auto-Load into Players Vehicle
woodringsa replied to woodringsa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
ok...figured it out. Maybe not the best way to do this, but it works. Create Trigger Mark it as Repeatable Condition: True Activation: 0 = spawn [] { while {alive player} do { waitUntil {vehicle player != player}; { _x assignAsCargo vehicle player ; _x moveincargo vehicle player; } foreach units group player; waitUntil {vehicle player == player}; { unassignVehicle _x ; moveOut _x } foreach units group player; }}; And done. AI will automatically be loaded into the same vehicle as the player. -
AI Auto-Load into Players Vehicle
woodringsa replied to woodringsa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tried this in a trigger and the INIT of my AI, but obviously doing something wrong. Taken from https://forums.bohemia.net/forums/topic/142041-getingetout-help/?tab=comments#comment-3475800 while {alive player} do { waitUntil {vehicle player != player}; { _x assignAsCargo vehicle player ; _x moveincargo vehicle player; } foreach units group player; waitUntil {vehicle player == player}; { unassignVehicle _x ; moveOut _x } foreach units group player; }; -
10 years later and this script is exactly what I was looking for...lol!
-
the mod subscribed from steam workshop leaves 2 copies in my DISKs, it is waste of my disk space
woodringsa replied to msy's topic in ARMA 3 - GENERAL
So glad that I found this workaround. I have been losing my mind trying to figure out a way around this.