OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pazuzu on 13 Mar 2005, 01:14:47

Title: No ammo
Post by: pazuzu on 13 Mar 2005, 01:14:47
I was wondering if there is a way to detect if a plane is out of ammo?

I'm making an air mission & I have a c130 flying around. Players are in F16's & I have it triggered so if an F16 gets within 70 meters of c130 that plane will rearm, repair & refuel.

I wanted to condition it so the planes have to be out of ammo before they can rearm.

Thanks
Title: Re:No ammo
Post by: Flauta on 13 Mar 2005, 01:34:01
maybe using the someammo command?

cheers
Title: Re:No ammo
Post by: Tomb on 13 Mar 2005, 02:37:30
 :o Check your official comref (command reference) :)

  UnitName Ammo "AALauncher" <1  :-*

...so its the "NAME_OF_AMMO" ya need to find.
try the ReadMe files that came with yer addons!
Title: Re:No ammo
Post by: pazuzu on 13 Mar 2005, 03:46:56
Thanks for the reply....

I cant get any command to work.

I keep getting "Error type bool expected nothing" message.

Maybe the syntax is off?

Thanks