I am currently working on a script for the second part of my Invasion series.
The script causes 3 hinds to randomly patrol Everon at all times. If the helo runs low on ammo it will rearm at base, and will refuel if running low on fuel. All of this is working fine.
The last part of the script runs combat search and rescue if the helo takes heavy damage. The helo will land, paratroopers will be sent to secure the area and finally a repair truck guarded by armour will be sent to reapair the helo so it can continue it's patrols.
Every aspect of the script is working perfectly, albeit in a very beta stage.
However, after the helo has been repaired (with setDammage 0) and the pilot get's back into the helo, it simply will not take off again. It works fine when the helo lands to refuel and rearm, and it works fine when the units get intothe helo and take off at the beginning of the mission; but not after being repaired.
As this script is an integral part of the mission, I cannot post the entire code here, so I will just post the eject and embark parts of the script. If you would like to know more please contact me on msn at xcess35@hotmail.com
disembark
unAssignVehicle _pilot
unAssignVehicle _gunner
[_pilot,_gunner] orderGetIn false
_gunner action ["EJECT",_helo]
_pilot action ["EJECT",_helo]
embark
_pilot assignAsDriver _helo
_gunner assignAsGunner _helo
~0.1
[_pilot,_gunner] orderGetIn true
....
_pilot flyInHeight 70
_pilot action ["engine on",_helo]
_pilot move _mpos