Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
script for detecting radio
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: script for detecting radio (Read 449 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?
Logged
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"
Logged
Is there any games than Flashpoint?
Chris Death
Former Staff
Finally Death's gonna get ya
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
Logged
Dont argue with idiots....they will bring you down to their level and beat you there with experience.
How to use Waypoint type Scripted
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
script for detecting radio
Top of page