Quote:
Originally Posted by thatdwarf
Basically I am just curious as to if there is an easier way to do:
|
There's a way to write it as:
PHP Code:
function onCreated() {
// Not needed if you don't plan on triggering a clientside function
join("triggerclass");
}
function someOtherFunction(acct, val) {
findplayer(acct).clientr.var = val;
}
//#CLIENTSIDE
function onCreated() {
join("triggerclass");
}
function someFunction() {
serverfunction2(null, "someOtherFunction", player.account, val);
}
with
Inverness' class, but it's pretty much the same thing; not sure if it's any easier. I prefer to use the class, because I hate working with cluttered onActionServerside()'s.