OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: JasonO on 11 Nov 2007, 19:04:00

Title: Dialog buttons local or global?
Post by: JasonO 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.
Title: Re: Dialog buttons local or global?
Post by: Spooner 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!
Title: Re: Dialog buttons local or global?
Post by: JasonO on 12 Nov 2007, 21:47:06
Thank you Spooner. Something less I have to worry about :D