Quote:
Originally Posted by Kamaeru
Control-NPC is an NPC, not a class.
|
Yeah I realize that. I am just wondering what the difference of doing what was posted vs something like:
PHP Code:
// Part of Class NPC called ControlNPC
function onControl() {
temp.control = player_data; // player_data defined earlier in the script
return temp.control;
}
PHP Code:
function onCreated() {
join("ControlNPC");
}
//#CLIENTSIDE
function onPlayerChats() {
temp.foobar = onControl();
echo(temp.foobar);
}
But maybe I am not clear on the difference between an NPC and a Class. Or maybe I don't know what I'm talking about.
I am not by a computer so I don't know if this is 100% correct**