Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: script for detecting radio  (Read 637 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