Jump to content

woodringsa

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Everything posted by woodringsa

  1. 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?
  2. 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.
  3. 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; };
  4. woodringsa

    Getin/Getout help

    10 years later and this script is exactly what I was looking for...lol!
  5. So glad that I found this workaround. I have been losing my mind trying to figure out a way around this.
×