![]() |
odd problem i think
when i update my "Control-NPC" it says this
Quote:
PHP Code:
PHP Code:
|
onCreated() is triggered when you update a weapon or npc script. Is that what you mean?
|
I think she's saying that's in another script than the NPC-Server itself.
|
Quote:
|
What's in the onCreated() and/or onInitialized() for the NPC-Server?
Also, eww at lower case weapon names :frown:. |
nothing, only function that is in there is the onActionPlayerOnline
|
Chompy fixed it by resetting it!!!!! ^^^^^^
|
I would suggest naming your weapons differently, like: Tileset and ChatProfiles.
That way you can do WeaponName.myFunction() and such in script. |
ok ty!! ^^^^
|
Since you weren't using a prefix for your variables, they were saved locally in the level and was able to be read by other NPCs in that level on serverside. I suggest you learn how Graal's vast amount of variable types work. :)
Quote:
|
i am/were using a prefix
|
Duh, sorry, my eyes decided to skip the three lines with the initializing of the variables. -_-
|
The thing I like about temp variables is that once you initialize them you don't need the temp. anymore which is something I hate seeing repeated in a function, so I prefer to initialize all the temp variables at the start of the function unless its a small thing.
|
| All times are GMT +2. The time now is 10:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.