View Single Post
  #1  
Old 06-12-2012, 02:57 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
NPCs triggering other NPCs

I'm trying to make a damage block instead of the player triggering the damage. But unfortunately I'm running into some issues.

How would I make this work to trigger other NPC's besides itself.

PHP Code:
function onActionServerside(temp.commandtemp.xtemp.y)
{
  switch(
temp.command){ 
    case 
"attack"
      
temp.tnpcs findareanpcs(temp.5temp.3106);   
      for(
temp.temp.tnpcs){   
        
temp.n.chat "Hit!";
  }
 }

Perhaps this question is badly worded and for that, I'm sorry forums.
Reply With Quote