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: disable radio for civilian  (Read 672 times)

0 Members and 1 Guest are viewing this topic.

Charlotte

  • Guest
disable radio for civilian
« on: 02 Jul 2003, 18:07:18 »
Hello there..I got a question.
Im creating my own mission and what Im doing is that my soldier uses the radio to find out the distance of the civilians. My problem is that the civilian can also access the radio and therefore it can see how far i am from  him..any ideas of how to stop the civilian to access the radio?
I have created a script to read the distance and so far it does the job.
thankssss  

peter

  • Guest
Re:disable radio for civilian
« Reply #1 on: 02 Jul 2003, 22:30:53 »
if you use sidechat to display the distance, only soldiers of your side will receive the message ...
example:

[West,"HQ"] sidechat format ["Distance: %1", (unit1 distance unit2)]
will show
HQ: Distance: 212.197345
to all west - soldiers

the civilian can still use the radio, but gets no message ...  ;)

RED

  • Guest
Re:disable radio for civilian
« Reply #2 on: 02 Jul 2003, 23:48:24 »
Why not use:

?side unit == CIVILIAN: 1 SetRadioMsg "null"

RED