OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Blanco on 16 Oct 2004, 18:05:54
-
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
-
89 views and no replies?
Is this script perfect or totally useless? :D
-
Hey Blanco-
Looked good, I would say just as an extra like in the readme that the editor shoud put a game logic or two in the vehicle first so that when the player hides in the vehicle they are not sitting in the front seat but rather guaranteed to be in the back where they are less likely to be seen. (Yes that was all one sentence ;D)
Other than that, I think its cool.
Blip :joystick:
-
I think it's a cool idea adds realism and is a bit different. Going to give this a try.
-
Hi Blanco, I for one have always found your scripts to be very useful indeed and add a more realistic feel to any mission they are used in.
Any plans on updating the satelite script you did a while ago?
EX-PARA
-
Nice Script! :thumbsup:
However, I did find one problem. When the vehicle is destroyed, the action still appears in the action menu.
Other than that, it's great!