OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 on 18 Sep 2009, 14:12:10
-
How do I place this ship in Editor?
-
Place a GameLogic somewhere in the sea and write this into the init field:
_xhandle = [this] execvm "createCarrier.sqf"
Then create this sqf and put it into the mission folder.
createCarrier.sqf:
_replace = _this select 0;
_pos = getpos _replace;
_dir = getdir _replace;
if (isServer) then {
_parts = [
"Land_LHD_house_1", "Land_LHD_house_2", "Land_LHD_elev_R",
"Land_LHD_1", "Land_LHD_2", "Land_LHD_3",
"Land_LHD_4", "Land_LHD_5", "Land_LHD_6"
];
{
_veh = _x createvehicle _pos;
_veh setdir _dir;
_veh setpos _pos;
} foreach _parts;
deletevehicle _replace;
};
-
You can't. The Khe Sanh is part of the Utes map. Think of it as a mountain, not a vehicle. :)
Cool! I stand corrected! :D
-
Oh! :o
Does this mean that this created and built up carrier can be moved too?? :blink:
-
Yes. To ease the task you could glue the parts together with attachTo (http://community.bistudio.com/wiki/attachTo).
There is one moving direction that's particular interesting: downward. It'd be nice to have a spectacular "sink carrier" script... :D