Home   Help Search Login Register  

Author Topic: Limit Radio use  (Read 1428 times)

0 Members and 1 Guest are viewing this topic.

Offline Alan34

  • Members
  • *
  • Praise the Lord and pass the Carl Gustav
    • Red Devils
Limit Radio use
« on: 23 Mar 2003, 16:05:04 »
What is the best way to limit radio use to the Group Leader?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Limit Radio use
« Reply #1 on: 23 Mar 2003, 17:34:20 »
I have a hazy recollection that only the group leader can use it anyway ...... is this a multiplayer question?
Plenty of reviewed ArmA missions for you to play

Offline Alan34

  • Members
  • *
  • Praise the Lord and pass the Carl Gustav
    • Red Devils
Re:Limit Radio use
« Reply #2 on: 23 Mar 2003, 17:48:00 »
It is a MP mission and currently anyone can use the radio (others have to access it from Map/Radio) but still anyone can use it.  I need to restrict it to Group Leader.

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Limit Radio use
« Reply #3 on: 24 Mar 2003, 20:12:30 »
What happens when the radio call is activated?  If you execute a script, then the script can check if the radio caller is the group's leader.

In your script, you can add the following code at the beginning:

? (leader player != player) : exit

This checks if the player (the unit causing the script to be executed) is the leader of his respective group.  If not, then the script will exit.
« Last Edit: 26 Mar 2003, 20:40:08 by Ranger »
Ranger