OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: sharkattack on 06 Mar 2008, 13:50:50
-
hi
a noob question .. how do i limit the use of the radio to the group leader only .
have searched high and low looking for this and cant find an answer ..
many thanx in advance
-
Here is the secret: Don't use the (global) radio in the editor in MP, since it can be used by anyone (unless you sync it with a group, but then anyone in that group can use it) and when used causes the trigger to fire on everyone's machine without any way to know who actually pressed the button.
Instead, use a script-created trigger, which then is triggered locally, so it is obvious who pressed the radio button. You could either only create the trigger for leaders (bad if the leader gets killed and no-one else can use it) or create it for everyone and ignore it if the local player isn't currently leader of his group. Remember that if the radio needs to have global effects, you'll have to manually communicate these effects in this case.
Radio triggers, made in the mission editor, work great in SP. This workaround only applies to MP and only when you need to know who actually pressed the radio button.
-
I would like to put limited radio use in my MP mission too. I want to give a radio to 2 Team leaders and 1 Squad leader. Squad leader should have ability to call CAS, Arty, and Medivac. TLs would be limited to small Arty and Resupply.
Is this delegation of responsibilities possible?
Or could a radioman be part of the group?
Would this require an addon?
I'll stop there, any guidence would be appreciated.
-
These limitations on who can use the radio are possible. See my previous post and examine the createTrigger command and its companion commands. I'm sure someone has already made something similar to this (there are a multitude of different support/artillery scripts floating about).
If you require the radio-man to have a physical radio object in order to use the radio (and that other people could pick up that radio and continue the job after his death), then I think that would require an addon. However, if you look, I'm sure you can find already existing radio addons for this very purpose.