View Single Post
  #17  
Old 01-06-2014, 11:25 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by cbk1994 View Post
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?
Reply With Quote