OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 on 18 Sep 2009, 14:12:10

Title: Khe Sanh ? Where is it on Editor?
Post by: stephen271276 on 18 Sep 2009, 14:12:10
How do I place this ship in Editor?
Title: Re: Khe Sanh ? Where is it on Editor?
Post by: bardosy on 18 Sep 2009, 14:17:18

Place a GameLogic somewhere in the sea and write this into the init field:
Code: [Select]
_xhandle = [this] execvm "createCarrier.sqf"
Then create this sqf and put it into the mission folder.

createCarrier.sqf:
Code: [Select]
_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;
};
Title: Re: Khe Sanh ? Where is it on Editor?
Post by: Worldeater on 18 Sep 2009, 14:17:55
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
Title: Re: Khe Sanh ? Where is it on Editor?
Post by: Undeceived on 23 Sep 2009, 02:41:57
Oh! :o
Does this mean that this created and built up carrier can be moved too?? :blink:
Title: Re: Khe Sanh ? Where is it on Editor?
Post by: Worldeater on 23 Sep 2009, 02:57:22
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