First, create a player functions class.
Then join it to the player. In the Control-NPC:
NPC Code:
player.join("playerfunctions");
In the class, put:
NPC Code:
public function PutBomy(putx,puty) {
dostuff();
}
Now, to call PutBomy, send a trigger to the server:
NPC Code:
triggeraction(0,0,"serverside",#N,params);
When it catches the action, call PutBomy:
NPC Code:
function onActionServerside() {
PutBomy(player.x,player.y);
}
This will trigger 'PutBomy' in the class.