OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 27 Sep 2008, 18:35:21
-
Hi,
Thanks to some really helpful people I have now learned how to check my own MP scripting through running my own computer as a dedi and then connect to it as a client. Great!
However, I soon found some weird inconcistent things and I don't understand how they are possible.
In a mission I have the:
init.sqs
blablabla
? ! IsServer : exit
~ 1600 + random 400
Variable1 = true
publicVariable "Variable1"
exit
Variable1 starts a global (editor placed) trigger that OnActivation does this:
Variable2 = true; leader group1 sidechat "blablabla"; leader group1 sideradio "blablabla"
Variable2 starts a second global (editor placed) trigger that OnActivation does this:
1 setRadioMsg "blablabla"; hint "blablabla"
The radio message gets changed and I get the hint, but I don't see the sidechat OR hear the sideradio.
How is that possible? The trigger obviously works since the radiomessage changes and I get the hint.
Anyone have any ideas?
Laggy
-
Perhaps group1 isn't a valid group? If you think it is, try using:
hint str [group1, leader group1];in the first trigger and see what you get.
-
Thx,
I know the group is valid unless you have to validate them somehow on a dedi.
In the editor it works.
Do you have to publicVariable the group identity somehow, even though the group is named in the editor?
Laggy
-
Well, if you have "group1 = group this" inside the members of the group, then that will be globally accessible. Not sure what your problem is then... :dunno:
-
Yeah I have "group1 = group this" in init line, but it is a cobra chopper. Could that be a problem... that it is a vehicle and distant when the mission starts?
Maybe the group leader isn't recognized?
Laggy