Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2015-10-20 00:54        
     
Hi, i'm trying to make a mission where I go skydiving, and I always end up at random locations. Instead of me heading to a fixed LZ, is there a way to make it so that the heli lands next to my current position then proceeds to take me away?
Cheers,
Joe.


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 57
In-game name: Kobayashi Maru

 
#2 Posted at 2015-10-20 09:51        
     
Sure! create an empty helipad on your position when asking for the helo, and create a waypoint to it.

part of the script:
_my_dz = "Land_HelipadEmpty_F" createVehicle (position player);
_wpt = my_helo addWaypoint [position player, 0];
_wpt setWaypointType "MOVE";
_wpt setWaypointBehaviour "CARELESS";
sleep 3;
waituntil {sleep 1; ( (my_helo distance getPosATL _my_dz) < 350) };
waituntil {sleep 1; unitReady my_helo };
my_helo land "GET IN";

Now you're in helo. So what?

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2015-10-20 17:12        
     
# Pierre MGI : Sure! create an empty helipad on your position when asking for the helo, and create a waypoint to it.

part of the script:
_my_dz = "Land_HelipadEmpty_F" createVehicle (position player);
_wpt = my_helo addWaypoint [position player, 0];
_wpt setWaypointType "MOVE";
_wpt setWaypointBehaviour "CARELESS";
sleep 3;
waituntil {sleep 1; ( (my_helo distance getPosATL _my_dz) < 350) };
waituntil {sleep 1; unitReady my_helo };
my_helo land "GET IN";

Now you're in helo. So what?
Cheers, I can do the rest. It's just that bit that made me stop.


Author Message


Posts: 8
Rank:


Level: Hidden

Country: ca
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2015-11-14 20:31        
     
# steamthrower : Hi, i'm trying to make a mission where I go skydiving, and I always end up at random locations. Instead of me heading to a fixed LZ, is there a way to make it so that the heli lands next to my current position then proceeds to take me away?
Cheers,
Joe.

Hey Joe. Just a question not meant to be rude but can you not use a support module for transport for such a thing? I'm just curious as to what extra the code might do? Please and thank you






Tags: Extraction