![]() |
Quote:
|
Quote:
And yes, onTrigger() would call it. |
Quote:
I tried to do PHP Code:
|
Quote:
PHP Code:
|
Quote:
So instead of writing: PHP Code:
PHP Code:
|
Quote:
PHP Code:
However, PHP Code:
|
Quote:
So, creating the function onCreated() basically itself is a trigger, so you have to use that trigger to initialize all other triggers? |
The function onCreated() will automatically be called when the "created" event is triggered by the engine.
Object1 triggers an event on Object2 -> onEvent() in the script of Object2 is called Object1 can be the engine. This is working exactly the same in GS1 as in GS2, just looking different: instead of if (trigger) you write onTrigger(). In GS1 it was actually scanning for "if (trigger)" and was trying to only call that part of the script when the event was triggered. |
Quote:
|
Quote:
Here is what I got.. PHP Code:
Is there a way in GS1 to do this? PHP Code:
|
visible doesn't work with images.
you could do something like.. PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
Quote:
PHP Code:
Quote:
|
Make sure you have the following the folder config.
PHP Code:
Then in a clientside script you can just use PHP Code:
|
Quote:
If I join a class to a clientside script, does everything in that class become clientside as if it waste pasted into the class? I am trying to think of another way to split this script so I can maintain my clientside timeouts but have my variables accessible by the server... Also, I have another problem that is whenever more than one person is on my server, (having the -Player weapon), ONE part of my interface is duplicated in the center of the screen... it's only the one part, and everything else works as intended.. :confused: |
Quote:
|
Quote:
PHP Code:
PHP Code:
but they will be named this.thing and this.var ofc ;) |
Quote:
(no space between the / and the *) |
I am trying to do a script for something like:
PHP Code:
|
Here's a simple summon weapon script, however since you probably deal with community names you may have to modify the findplayer to findplayerbycommunityname, or whatever it is.
PHP Code:
|
| All times are GMT +2. The time now is 08:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.