Jump to content
Sign in to follow this  
rocket powered hamster wheel

Need assistance with heli scripting

Recommended Posts

Hey all, since yesterday I have been trying to figure how to have an AI helicopter wait for a group of players to get in, take off and wait for the players to rappel then leave and land. I have looked at various guides and scripts but I have not been able to figure it out. Any help figuring would be greatly appreciated.

Share this post


Link to post
Share on other sites

Hello and welcome!
- an AI helicopter waits for a group of players to climb aboard
Quite simple, you name your helicopter “heliname” and create a “Charger” waypoint on its position with the condition :

{_x in heliname} count (units group player) == {alive _x} count (units group player)

The helicopter will not follow its next waypoint until the entire group of players has entered. Functional in SP and MP

- takes off
Simply define a second “Move” waypoint, indicating a height, and the helicopter will move to this point once the group has loaded.

- wait for players to abseil
Here, I don't know how you want to include the abseiling: a script? an AddAction? Either include a Waypoint with a condition to stop the helicopter and a script call, or use a trigger.

- go back and land
Same principle as the previous waypoints, a precise condition will allow the helicopter to return and land.
In the previous example, we checked for presence, now we need to check for absence :

{_x in heliname} count (units group player) == 0


These solutions use the 3D editor and its native functions (waypoints and possibly triggers), so there must be more complex scripts, but this already gives you some idea of how to go about it!
Good luck and happy editing!

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×