OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Charlotte 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
-
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 ... ;)
-
Why not use:
?side unit == CIVILIAN: 1 SetRadioMsg "null"
RED