Cant say im a bad scripter, yet several threads in this "scripting help" forum has been created by me lately..
Anyways, Ive been trying to get a public function to work - without success.
Example on class (named "className" in this test):
PHP Code:
public function funcName()
{
player.chat = "foo";
}
Example on Control-NPC:
PHP Code:
function onCreated()
{
player.join( "className");
}
Example on Weapon:
PHP Code:
function onPlayerEnters()
{
player.funcName();
}
If you can tell me what im doing wrong/tell me how to do it properly - I would greatly appriciate it.