Frizen 10 Posted September 25, 2009 Hello, I downloaded some script from here. Now, I can get cars into the c-130 but not armored and trucks. Help me plz :O Thanks :) Share this post Link to post Share on other sites
kylania 568 Posted September 25, 2009 It's controlled by how you call the script. The init field of the C-130 will have this option: nul = [this,"CAR"] execVM "mountOnC130\mount_vcl_init.sqf"; To allow tanks only just change "CAR" to "TANK". To allow both to be carried, and a lot more, try "LAND". Share this post Link to post Share on other sites
Frizen 10 Posted September 25, 2009 Thanks :D Works wonderful! :) Share this post Link to post Share on other sites
M3th0s 10 Posted September 25, 2009 (edited) o.0? The tank is more larger than C130.... how u can do it? Only C2-C17 can pickup a tank! http://www.aerospaceweb.org/aircraft/transport-m/c17/c17_27.jpg http://www.afmc.af.mil/shared/media/photodb/web/050901-F-0001J-001.jpg anyway I want do the same thing but with a different script (it's from Norrin too but this attach a parachute on the object). I need this script for ammo box, this is the line:"[_loadpos, ["Land","Ship"], 8]" <--- but the name of ammo box is "ammo"? So is this the right script? [_loadpos, ["Land","Ship","Ammo"], 8] ??? This is the script: _vehicle = _this select 0;_caller = _this select 1; _actionarray = _this select 3; _action = _actionarray select 0; _carrier = _this select 0; _fuel = fuel _carrier; _loadpos = _carrier ModelToWorld [0' date=-12,-5.5]; _cargo = _carrier getVariable "cargo"; _act1 = _carrier getVariable "act1"; if (_action == "load") then { if (_cargo == "") then { _near = nearestObjects [_loadpos, ["Land","Ship"], 8]; _obj = _near select 0; _bound = boundingBox _obj; _width = (_bound select 1 select 0) - (_bound select 0 select 0); _length = (_bound select 1 select 1) - (_bound select 0 select 1); _height = (_bound select 1 select 2) - (_bound select 0 select 2); if (count _near > 0) then { player sidechat format ["x:%1 y:%2 z:%3",_width,_length,_height]; if ((_width <= 5.0) && (_length <= 11) && (_height <= 6.2)) then { _carrier setVariable ["cargo",_obj]; _carrier removeAction _act1; player sideChat format ["Loading %1 into cargo",typeOf _obj]; _carrier setFuel 0; _carrier animate ["ramp_top", 1]; _carrier animate ["ramp_bottom", 1]; sleep 3; _obj attachTo [_carrier,[0,2,((_obj modelToWorld [0,0,0]) select 2)-4.5]]; _id = _obj addEventHandler ["GetOut", {(_this select 2) moveInCargo (_this select 0 getvariable "carrier")}]; _obj setVariable ["evh",_id]; _obj setVariable ["carrier",_carrier]; sleep 1; _carrier animate ["ramp_top", 0]; _carrier animate ["ramp_bottom", 0]; sleep 1; _carrier setFuel _fuel; _id = _carrier addaction ["Unload", "cargoscript.sqf", ["drop"]]; _carrier setVariable ["act1",_id]; } else { player sideChat "This won't fit in the cargospace"; }; } else { player sideChat "Nothing in range"; }; } else { player sideChat "Cargo is already full"; }; }; if (_action == "drop") then { _carrier removeAction _act1; _id = _cargo getVariable "evh"; _cargo removeEventHandler ["GetOut", _id]; if ((getpos _carrier select 2) > 3) then { detach _cargo; _cargo setpos _loadpos; sleep 1; _chute = "ParachuteMediumWest" createVehicle getpos _cargo; _chute setpos (_cargo ModelToWorld [0,0,3]); _cargo attachTo [_chute,[0,0,0]]; } else { _carrier animate ["ramp_top", 1]; _carrier animate ["ramp_bottom", 1]; sleep 3; detach _cargo; _cargo setpos _loadpos; sleep 1; _carrier animate ["ramp_top", 0]; _carrier animate ["ramp_bottom", 0]; }; _carrier setVariable ["cargo",""]; _id = _carrier addaction ["Load cargo", "cargoscript.sqf", ["load"]]; _carrier setVariable ["act1",_id]; }; Thank You! Edited September 25, 2009 by M3th0s Share this post Link to post Share on other sites
Frizen 10 Posted September 25, 2009 It's not to my missions, I just want to have some fun with scripts :P Maby my next mission will be with cool stuffs :D (I know, that exaggerated ^^ ) Share this post Link to post Share on other sites