This script simply allows you to hide in vehicle.
Take a look at an M17,M24 or Chinook Helicopter for a while, you will see that the cargodoors are always open, but you can't enter the vehicle. Not very realistic huh?
My idea was to give the player the possibility to hide in such a vehicle, but only when it's locked in the editor.
Watch out, This script can only work with vehicles with cargospace(s). Tanks and (most) planes dont have cargospace, only gunner, commander and driver positions.
When you hide you are not able to drive or use the weapons of that vehicle. (because it's locked)
USAGE :
First place the getout.sqs and Hide.sqs in you own mission folder
...Then place an EMPTY and LOCKED vehicle in the editor.
Run the script in the init like this :
call format ["this addaction [""Hide in %1"",""hide.sqs""]",typeof this]
That's all :-)
You don't need to name the vehicle or place any triggers.
Check the little testmission, no addons needed