Quote:
Originally Posted by Dnegel
Lol, I know that one.
I guess it will start with
PHP Code:
//#CLIENTSIDE functionTest();
|
If you do not have your function call inside a function block then it will result in unusual behaviour (being called every time an event occurs perhaps, which would get very messy and use a lot of CPU time). Instead you should call your function from specific events (i.e. onCreated being called when the NPC is updated or the script is first loaded):
PHP Code:
//#CLIENTSIDE
function onCreated()
{
functionTest();
}