![]() |
Global clientside variables?
How would I make/use global clientside variables using gs1 (in an editor room) were any npc (including weapons) can change the variable? I am trieing to make a bumper that npc that when you touch it, it changes a different npc's variable (the movement direction).
I am pretty rusty with gs1 and 2 so please be patient with me... By the way, I tried excluding the 'this.' when I used the variable but meh still no luck. |
player.
|
will 'player.' this work for gs1 in the editor?
|
Lol, ANYTHING works in the editor.
|
Quote:
Variables without prefixes are Global. It doesn't work like that in the editor though, because variables without prefixes prior to the new engine functioned the same way was temp. variables do now. |
Quote:
|
Quote:
|
Quote:
Old GraalScript PHP Code:
New GraalScript PHP Code:
And another thing, in the editor, I placed two scripts: PHP Code:
PHP Code:
Let's not confuse people with false information now. Variables without prefixes are global, and have been global (with some exceptions). |
Quote:
|
Quote:
Try not to correct me unless you know what you're talking about, and what context the question was phrased in. |
Quote:
Quote:
You are wrong. |
| All times are GMT +2. The time now is 07:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.