Home   Help Search Login Register  

Author Topic: script for detecting radio  (Read 448 times)

0 Members and 1 Guest are viewing this topic.

marcinko

  • Guest
script for detecting radio
« on: 23 Feb 2004, 06:16:05 »
I want to activate radio commands only if I have a unit from my group carrying BAS_Satcom.   How do I make it that these radio commands are only available if the radio is present with my group?

Offline Marvin

  • Members
  • *
  • One day they will come
Re:script for detecting radio
« Reply #1 on: 23 Feb 2004, 10:01:13 »
To activeate probably you would need to check for weapon like:
player Hasweapon "YourWeapon"

Is there any games than Flashpoint?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:script for detecting radio
« Reply #2 on: 23 Feb 2004, 10:49:49 »
And to check, wether one or more units of given group has
such a radio you would say:

{_x hasWeapon "bas_satcom"} count (units groupname) > 0

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted