I broke down and placed my script inside of a weapon NPC which has fixed a lot of the issues I was having before. Currently I am calling it in a level NPC like this:
PHP Code:
function onPlayerTouchsMe() {
temp.npc = findweapon(WEAPON).FUNCTION(PARAM, PARAM);
}
but I realize I could do something like
PHP Code:
function onPlayerTouchsMe() {
triggerClient("gui", "WEAPON", PARAM, PARAM);
}
I think I prefer the second method as it looks a lot cleaner, and believe it would function in the same way, but I'm wondering if one way is superior to the other, if there are any security flaws in either method, etc.
Quote:
Originally Posted by Crow
PHP Code:
function GraalControl.onResize(width, height) { }
|
For whatever reason I assumed onResize was restricted to GUI Controls. Thanks, and thank you to everyone who has helped me out thus far.
Now I just need to understand this scrolling bug.