Home   Help Search Login Register  

Author Topic: Weird MP global trigger "bugs" or something else?  (Read 1546 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Weird MP global trigger "bugs" or something else?
« 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


« Last Edit: 27 Sep 2008, 18:55:27 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Weird MP global trigger "bugs" or something else?
« Reply #1 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.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Weird MP global trigger "bugs" or something else?
« Reply #2 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
« Last Edit: 27 Sep 2008, 19:17:01 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Weird MP global trigger "bugs" or something else?
« Reply #3 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:
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Weird MP global trigger "bugs" or something else?
« Reply #4 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
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.