On_NPCKilled

Feb 8, 2015
On_NPCKilled
  • Method:
    On_NPCKilled

    Argument(s):
    HurtEvent he

    Examples:
    Python:

    Code (Python):
    def On_NPCKilled(self, HurtEvent):
        if HurtEvent.Victim.Name == "Bear":
            Server.Broadcast(HurtEvent.Attacker.Name + " Killed a Bear!")
     

    Javascript:
    Code (Javascript):
    function On_NPCKilled(HurtEvent) {
        if HurtEvent.Victim.Name == "Bear": {
            Server.Broadcast(HurtEvent.Attacker.Name + " Killed a Bear!");
        }
    }

    C#:
    Code (C#):
    ...