OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 07 Jan 2009, 17:58:24

Title: AI chopper re-arm
Post by: Crowey on 07 Jan 2009, 17:58:24
Hi guys is there way way to get an ai chopper to re arm at a supply truck whilst its following a destroy WP command???
Title: Re: AI chopper re-arm
Post by: Tyger on 07 Jan 2009, 19:07:12
You'll have to run a script to move the chopper to the location of the supply truck, then execute the action
Code: [Select]
myChopper action ["REARM", myAmmoTruck]
If you execute that action without moving the chopper to the location of the truck, they will rearm from their current position, no matter the distance.
Title: Re: AI chopper re-arm
Post by: Crowey on 08 Jan 2009, 12:35:09
Wicked cheers mate
Title: Re: AI chopper re-arm
Post by: Tyger on 09 Jan 2009, 04:23:24
No problem! Glad to help!