Home   Help Search Login Register  

Author Topic: disable radio for civilian  (Read 433 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