OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dmakatra on 05 Feb 2003, 20:39:40

Title: Radio avaible
Post by: dmakatra on 05 Feb 2003, 20:39:40
Hi! Is there a way to set acces to da radio list only if you have a specified guy in your group? Plz help.

Thx in advance.
Title: Re:Radio avaible
Post by: macguba on 05 Feb 2003, 21:01:33
in the condition field of the radio trigger have something like

specialguy in groupname

checkout the command as ever, I have a  feeling "in" applies to arrays ..... you can make a group look like an array though I can never remember how
Title: Re:Radio avaible
Post by: Ranger on 05 Feb 2003, 21:26:05
You can do that in one of two ways.

Using Macguba's idea, the syntax for the trigger's condition would be as follows:

this and specialguy in (units groupname)

The alternate way:

this and (group specialguy == MyGroup)

Where MyGroup is the name of the group you'd like the guy to be in for the trigger (radio command) to work.
Title: Re:Radio avaible
Post by: dmakatra on 05 Feb 2003, 21:55:15
Thx guys, I have to try that tomorrow!

Macuba, do you never do anything else then online on this forum? YouÂ're sicker than I am! ;D
Title: Re:Radio avaible
Post by: macguba on 05 Feb 2003, 22:17:29
 ;D