![]() |
Ugh, I don't know how else to do this.
I want the weapon icon to be displayed dependant on the type of weapon equipped, so.. PHP Code:
PHP Code:
|
Quote:
PHP Code:
Quote:
Quote:
Plus.... you're combining GS1 and GS2 in a horrible way >_< Quote:
PHP Code:
And, I'm pretty sure you're adding an extra parameter to showimg almost everywhere. Press F2 and click on "Scripts", it may be giving an error. |
Quote:
Quote:
PHP Code:
Edit: Bah, I got it to work with #s. *slap forehead* |
You can use GS2 now! Don't be a slave to GS1 conventions.
PHP Code:
|
Quote:
PHP Code:
|
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:
|
| All times are GMT +2. The time now is 01:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.