OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: B-2-0 on 29 Apr 2003, 06:52:39
-
Is it possible to start off with the KL-R 250's in the cargo crate of the MH-47E cargo??
If so how do i do it??
I have tried this moveincargo but it doesn't work ???
-
My suggestion is to read the BAS read me that came with the add-on. I think it clearly states what you have to do but you know I could be wrong.... check it out and let us know
IW
-
It doesn't tell u how to have a vehicle start in cargo, only how to get it in cargo during play :-\
-
Well, if you can get it in cargo during play you can probably do it at the start. How do you do it during play?
-
Well I'll be...
How about people does that work?
-
From the Read Me...
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
CARGO HELICOPTER OPTIONS
///////////////////////////////////////////////////////////////
We are pleased to introduce a brand new feature with the MH47E Cargo.
The ability to properly transport other vehicles in the back of the helicopter.
At present you will be able to transport a Jeep, and a Jeep with Machine Gun, and the BAS KLR 250. We have several more vehicles planned for inclusion in the system very soon, including a small stowable boat.
Credit for the original idea goes to ROM. Big thanks to him for his input, and we wish him well with his Universal Cargo System, which you may like to check out in the near future.
To use this feature do the following.
Drive your jeep into the back of the CARGO version of the helicopter. When you are in the correct position you will have the option to LOCK DOWN CARGO. In the case of motorbikes, they will be stowed in a large crate, up to a maximum of 10 in the crate.
Any AI in the jeep will be automatically moved into one of the TEN available cargo seats. The player will have the option what position to take. Now the following options will present themselves.
Looks like all player controlled... hum?
-
Yep, that looks like it. You'd probably have to unpbo the addon and figure out what was going on to be able to make an AI unit do it, or have the commands in init.sqs
Are there forums over at BAS? Can you ask there, or send them an email? I think it's probably your best bet, though it sounds like the short answer is that it can't be done.
But, I don't actually know, so don't put too much weight on this post ::)
-
Setting players in cargo works fine!
They have no forum over there so i just mailed them asking them if they'd be kind enough to take time out to give us a sit-rep.
We wait with baited breath :)
(Well i do, even if you don't :P)
-
I added onto a post in the addon thread that I believe BAS personal answer questions... maybe we will get some answers
http://www.ofpec.com/yabbse/index.php?board=15;action=display;threadid=7241&start=200 (http://www.ofpec.com/yabbse/index.php?board=15;action=display;threadid=7241&start=200)
-
Hesus from the other thread stated this...
[chooper, player or empty vehicle] exec "\BAS_Cargo\loader.sqs"; this animate ["cargoswitch",0.5]
Should work.... ;D
-
Ok...if i understand correctly, i am to type this into the empty vehicle's init field, right?
When i do that with a jeep and preview, the jeep moves into cargo, then i get a 'Vehicle type not supported' message and the jeep then moves to the bottom of the ramp BUT when i then drive the jeep in and lock it down, it says vehicle type not suported again BUT the chopper can still take off and jeep stays in cargo
With the BAS KLR i just get the vehicle type not supported mesage
-
Try the BAS helo instead of the empty vechile
-
Ok, result, that works fine with the jeep but not with the KLR
Maybe it's a different command as the bikes go in a crate ???
-
Complicated scripts make no sense to me... maybe to you guys this will?
I unpbo'd the MH47 Cargo.pbo and opened up the crate.sqs... this is what part of the script and maybe it is a start.
_proxy = "BASCargoCrate" createvehicle [0,0,0]
_invisguy action ["GETOUT", _helo ]
deletevehicle _invisguy
~0.5
_proxy moveincargo _helo
deletevehicle _cargoobj
~1
_bikecount = 0
#looper
? (_helo animationphase "cargoswitch2")==0.1: _bikecount = 1
? (_helo animationphase "cargoswitch2")==0.2: _bikecount = 2
? (_helo animationphase "cargoswitch2")==0.3: _bikecount = 3
? (_helo animationphase "cargoswitch2")==0.4: _bikecount = 4
? (_helo animationphase "cargoswitch2")==0.5: _bikecount = 5
? (_helo animationphase "cargoswitch2")==0.6: _bikecount = 6
? (_helo animationphase "cargoswitch2")==0.7: _bikecount = 7
? (_helo animationphase "cargoswitch2")==0.8: _bikecount = 8
? (_helo animationphase "cargoswitch2")==0.9: _bikecount = 9
? (_helo animationphase "cargoswitch2")== 1: _bikecount = 10
? (_helo animationphase "cargoswitch2") == 0.05:goto "Paradrop"
? (_helo animationphase "cargoswitch2") == 0.15:goto "LAPE"
? (_helo animationphase "cargoswitch2") == 0:goto "unload"
~1
goto "looper"
This _proxy moveincargo _helo caught my eye because a little up on the script you can execute a player loading up as you proved player1 moveincargo helo1
IW
-
This one is beyond me guys ???
*Sounds the cavalry bugle* :)
-
Although I know very little about scripting, I would try using "cargoswitch2" in place of "cargoswitch" like so:
[chooper, player or empty vehicle] exec "\BAS_Cargo\loader.sqs"; this animate ["cargoswitch2",0.5]
As I do not have this addon, I cannot try this myself.
-
Ok, thanks to Hesus, here's how to start the MH-47E with KLR's in cargo:
;klr in cargo
[mh,klr] exec "\BAS_Cargo\Crate.sqs"; mh animate ["cargoswitch2", (mh animationphase "cargoswitch2")+0.1]; mh animate ["cargoswitch",0.05]
Muchas Gracias Hesus :thumbsup:
All we need to know now is how to get an ungrouped loon to para-drop the jeep/crate at our position ??? (Bearing in mind u have to get the chopper to 'Hold' first then para-drop) :)