Editors Depot

[OFPRes] Helicopter Collision Avoidance (OFP) by Mr.Peanut

Version 1.1
Added 07 Jul 2008
Downloads 659
Demo included Yes
Filesize 8.63KB
User rating Not yet rated

Avoid collisions between the list of choppers provided to the script.

 

This script works by predicting each helicopter's position _dt seconds from present. If any of the helicopters are closer to each other than distance _dist they are nudged apart from each other with a speed based on the value of _spd. The _delay variable is the loop delay between collision checks. There is a degree of randomness involved. The helicopters will not always successfully avoid collision. In the demo provided there are eight AI helicopters, one of which will crash about 50% of the time in the first thirty seconds.

This script is also available for ArmA

View the forum thread for this resource here.


Click to see 6 other resources by this author.


Search OFPEC Editors Depot

COMREF

The OFPEC Command Reference contains details of all scripting commands available to the editor.

Beginner's Tutorial

All you need to know about how to start editing.

Multiplayer Tutorial

This tutorial explains the mysteries of multiplayer editing.

OFPEC Tutorials

OFPEC hosts several quality tutorials written specifically for the site by staff and members...

OFPEC Tags

Register a tag, browse for addon keys...