Home   Help Search Login Register  

Author Topic: Dialog buttons local or global?  (Read 1303 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Dialog buttons local or global?
« on: 11 Nov 2007, 19:04:00 »
Hi there

I have a dialog, that once clicked runs a script.

Now, I want to know that if the player clicks the button, the script is local to that player?

I have a script that has a cash variable, and I don't want this variable changed for everyone. So, if I was to run a script from a dialog, would it run on all computers and server?

Thanks.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Dialog buttons local or global?
« Reply #1 on: 11 Nov 2007, 21:42:25 »
Everything to do with dialogs is totally local (both the visual display and scripts run through event handlers). Fear not!
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Dialog buttons local or global?
« Reply #2 on: 12 Nov 2007, 21:47:06 »
Thank you Spooner. Something less I have to worry about :D