Home   Help Search Login Register  

Author Topic: Khe Sanh ? Where is it on Editor?  (Read 1718 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Khe Sanh ? Where is it on Editor?
« on: 18 Sep 2009, 14:12:10 »
How do I place this ship in Editor?

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: Khe Sanh ? Where is it on Editor?
« Reply #1 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;
};
Fix bayonet!

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Khe Sanh ? Where is it on Editor?
« Reply #2 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
« Last Edit: 18 Sep 2009, 14:22:20 by Worldeater »
try { return true; } finally { return false; }

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Re: Khe Sanh ? Where is it on Editor?
« Reply #3 on: 23 Sep 2009, 02:41:57 »
Oh! :o
Does this mean that this created and built up carrier can be moved too?? :blink:
Current project: Black Lands (Arma 3)

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Khe Sanh ? Where is it on Editor?
« Reply #4 on: 23 Sep 2009, 02:57:22 »
Yes. To ease the task you could glue the parts together with attachTo.

There is one moving direction that's particular interesting: downward. It'd be nice to have a spectacular "sink carrier" script... :D
try { return true; } finally { return false; }