Home   Help Search Login Register  

Author Topic: @ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"  (Read 534 times)

0 Members and 1 Guest are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
Hi All :)

I was wondering if anyone knew what is wrong with piece of syntax in a script of mine..

Code: [Select]
@ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"
i have tried @ [player ammo "CarlGustavLauncher" = 0] : Goto "ReArm" and @ player ammo "CarlGustavLauncher" == 0 : Goto "ReArm" but to no success :(

Whats wrong with it ?? Oh by the way.. what i want is to check if a unit has used its only AA missile (as u prob now that units can only carry 1 AA Missile at a time) and if he has then to go to the part of the script labelled "ReArm"

just cant get it to work..

Regards Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:@ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"
« Reply #1 on: 15 Mar 2004, 00:03:11 »
Don't use square brackets [ ]:  use ( )

Use ? instead of @ - you are getting the two things mixed up.
« Last Edit: 15 Mar 2004, 00:03:48 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline rhysduk

  • Former Staff
  • ****
Re:@ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"
« Reply #2 on: 15 Mar 2004, 00:06:35 »
Whats happening? Did u just edit ur reply? i thought i saw something different.. am i going mad  ???  ???

Thx for the reply so soon macguba :thumbsup:

Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:@ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"
« Reply #3 on: 15 Mar 2004, 00:09:43 »
Lol yes I did edit the reply, but it only took 37 seconds as you can see from the timings .... anyway hope it does the trick.
Plenty of reviewed ArmA missions for you to play

Offline rhysduk

  • Former Staff
  • ****
Re:@ [player ammo "CarlGustavLauncher" == 0] : Goto "ReArm"
« Reply #4 on: 15 Mar 2004, 00:17:12 »
Thanks a lot macguba :thumbsup:

I get no error msg now and things are happening as i wanted them too..

A few things need polishing to do with ammo types of missiles concerning strela's and AA missiles etc.. but for now its great :)

Drinks are on me :cheers:

Regards

Rhys

*Topic Locked
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)