OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 12 Aug 2005, 02:13:31

Title: Check Ammo
Post by: The-Architect on 12 Aug 2005, 02:13:31
I'm trying to have a script check to see whether an A10 has any bombs left and if it hasn't, go home.

I tried this,

#Check
Strikeplane ammo "Laserguidedbomb" >= 1 : goto "Check"

Strikepilot sidechat "I'm out of ammo here. I'm heading home. Out."
~5
[Strikepilot] join Grpnull
Strikepilot Land "Land"


I'm getting an unknown operator message on the first bit. Any ideas?
Title: Re:Check Ammo
Post by: macguba on 12 Aug 2005, 10:20:01
You're missing a ?.
Title: Re:Check Ammo
Post by: The-Architect on 12 Aug 2005, 18:37:02
Yep, got it. Bloody scripts.
Cheers Macca.