Quote:
Originally Posted by cbk1994
Should work if you only want it to send the trigger once. Just call this.destroy(); after sending the trigger.
|
So I ran into a little bit of issues. I discovered I need to destroy the block serverside. How would I trigger a serverside function in clientside?
I tried this in the clientside
PHP Code:
triggerserver("npc", this.name, "destroy")
and this in the serverside..
PHP Code:
function onActionServerSide(){
if (params[0] == "destroy"){
destroy();
}
}
it doesn't work so can you tell me what I'm doing wrong please?