Quote:
Originally Posted by cbkbud
So all it is is a frame for a trigger? You could just do:
PHP Code:
function onActionServerSide( cmd, tokens )
{
switch ( cmd )
{
case "test":
{
// FOO
break;
}
}
}
//#CLIENTSIDE
function onPlayerChats()
{
if ( ! player.chat.starts( "/" ) )
{
return false;
}
tokens = player.chat.tokenize();
triggerServer( "gui", name, tokens );
}
|
He COULD have done that, or he could have provided his example, which provides a more hands on experience for the learning scripter. With his example, someone can go OH THATS WHY YOU WOULD DO THAT, whereas with yours, someone might miss the reason entirely.
There was really nothing wrong with what he proposed, and it seems like everytime I come to the scripting forum, every thread leads into an argument to boast/destroy e-pride. Play nice k?