OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ryu on 22 Feb 2003, 13:37:22

Title: Radio
Post by: Ryu on 22 Feb 2003, 13:37:22
I have the leader send a radio message to HQ who then send back an answer. But if the leader, (player1) is not sellected I only see HQ side of the conversation.
Is there anyway to make the player who is the leader, be it player2, player3 etc send the message?

Thanks for any help
Title: Re:Radio
Post by: Ranger on 24 Feb 2003, 18:49:11
You can determine the leader of a group dynamically with the leader command.  The leader can be determined via either a unit in the group or the name of the group.  E.g.:

leader MyUnit
leader MyGroup

So, just have your script have the leader send the message instead of specifically naming the leader as player1.
Title: Re:Radio
Post by: Ryu on 25 Feb 2003, 02:05:15
Thanks. That should do it.