Jump to content
Sign in to follow this  
frosties

Flagpole HALO (ACE)

Recommended Posts

Hello,

Been searching the forum and trying to find information on how to add the HALO option to a flagpole.

What i would like is that when we respawn in base after being killed, we can HALO or parajump on a selected spot instead of having to drive or fly there again.

Can somebody point me in the direction i need?

Found this on the ACE website , but cant figure out where to put it:

_unit addweapon "ACE_ParachutePack" or "ACE_ParachuteRoundPack";_unit setPos [(position _unit select 0), (position _unit select 1), 800];_unit execVM "x\ace\addons\sys_eject\jumpout_cord.sqf"; 

Share this post


Link to post
Share on other sites

Yes i have that in my mission right now.

But i would like the ACE HALO function, with the steerable parachute, windspeed and such..

Share this post


Link to post
Share on other sites

mia389 posted an ACE version in the comments of my page:

0 = [this] execVM “halo.sqfâ€;

if (_this select 0==player) then {
    waitUntil {alive player};
         _unit = player;
         _unit addweapon “ACE_ParachutePackâ€; 
         _unit setPos [(position _unit select 0), (position _unit select 1), 3000];
         _unit execVM “x\ace\addons\sys_eject\jumpout_cord.sqfâ€;
};

Share this post


Link to post
Share on other sites

ive tried that but it wont work, not for me anyway.

The mapclick thing works, but i wont get airborne just get teleported to the location i click.

Maybe i dont put the script in properly.. ?

the first line should go intot he init of the flagpole and the other code in halo.sqf ?

I really appreciate script examples, but when you dont know how/where to put the script it doesnt make much sense :D

Edited by Frosties

Share this post


Link to post
Share on other sites

Here's a demo mission for ACE showing that code at work.

init of flagpole:

this addAction["HALO Jump", "flagpoleHALO.sqf"];

flagpoleHALO.sqf:

haloed = true;
hintSilent "Click on the map where you'd like to HALO. You will be jumping from 2500 meters.";
onMapSingleClick "player setPos _pos; [player] execVM 'halo.sqf'; haloed = false;hint 'Close the map and don''t forget to open your chute!'";
waitUntil{!haloed};
onMapSingleClick "";

halo.sqf:

if (_this select 0==player) then {
    waitUntil {alive player};
    _unit = player;
    _unit addweapon "ACE_ParachutePack";
    _unit setPos [(position _unit select 0), (position _unit select 1), 2500];
    _unit execVM "x\ace\addons\sys_eject\jumpout_cord.sqf";
};

Share this post


Link to post
Share on other sites
Guest
But i would like the ACE HALO function

ACE related questions belong in the ACE thread. Not really a topic one can miss due to its popularity I would say :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×