OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 27 Sep 2008, 18:35:21

Title: Weird MP global trigger "bugs" or something else?
Post 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


Title: Re: Weird MP global trigger "bugs" or something else?
Post by: Spooner on 27 Sep 2008, 18:58:34
Perhaps group1 isn't a valid group? If you think it is, try using:
Code: [Select]
hint str [group1, leader group1];in the first trigger and see what you get.
Title: Re: Weird MP global trigger "bugs" or something else?
Post by: laggy on 27 Sep 2008, 19:00:58
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
Title: Re: Weird MP global trigger "bugs" or something else?
Post by: Spooner on 27 Sep 2008, 20:01:56
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:
Title: Re: Weird MP global trigger "bugs" or something else?
Post by: laggy on 29 Sep 2008, 21:57:40
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