Forum Jump :

Author Message


Posts: 8
Rank:


Level: Hidden

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

 
#1 Posted at 2015-11-14 16:03        
     
Hello All,

Thank you for reading this. I am just having a slight problem with landing with a parachute whether it be AI or myself or one of my friends that i play with on my server. I have tried to land maybe 40-50 times and on all different surfaces to see why i keep dying upon landing. Now i figured that instead of sitting there and trying to consistently land well and hope my AI teammates land well also, I was wanting to write something in the INIT line of the unit that will keep all players and AI at full health or god mode till they hit the ground. Once they reach the ground i would like god mode to turn off. My scenario is being done on Imarali Island Terrain Mod where i want a task force to parachute right from mission start they are freefalling so i add the line addbackpack "B_parachute"; in the init line for each unit to give them a parachute and i start them off in the air at about 500 meters. And as i mentioned i just can't seem to land without dying. Its not that i get dragged like i've read in some forums i just don't let go off the parachute and fall and die 2 seconds after landing. I was wondering if anyone could help me with a little code to put in the INIT line so that they can have no damage to health till they are on the ground and the parachute has disconnected and then after that back to normal allowdamage true; Please and thank you


Author Message


Posts: 1515
Rank:


Level: Member

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

 
#2 Posted at 2015-11-14 16:29        
     
This may work but haven't tested.

null=this spawn {_this allowdamage false;waituntil {isTouchingGround _this };sleep 0.5;_this allowdamage true};


Advertisement


Author Message


Posts: 3
Rank:


Level: Member

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

 
#3 Posted at 2015-11-14 18:14        
     
I've been trying to do a similar thing today (high five!).
This script:
http://www.armaholic.com/page.php?id=25458

Its not exactly what you want, as it requires anyone you want to para jump to be in a vehicle. However, with some minor tweaks you can just pass the player to the script and it will sort out the rest. Bonus being that you can give your ai/ you backpacks.


Author Message


Posts: 8
Rank:


Level: Hidden

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

 
#4 Posted at 2015-11-14 19:23        
     
# F2kSel : This may work but haven't tested.

null=this spawn {_this allowdamage false;waituntil {isTouchingGround _this };sleep 0.5;_this allowdamage true};

Thank you very much i shall go home and try this i'm not good at scripting but i'm trying to understand it so far

Added 1 minute later:

# hightower2015 : I've been trying to do a similar thing today (high five!).
This script:
http://www.armaholic.com/page.php?id=25458

Its not exactly what you want, as it requires anyone you want to para jump to be in a vehicle. However, with some minor tweaks you can just pass the player to the script and it will sort out the rest. Bonus being that you can give your ai/ you backpacks.

Thank you very much Hightower. I shall look at it when home from work hopefully it'll work well for starting out falling in the air.