Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INPCManagerEvents

Hierarchy

Index

Methods

canSpawn

  • canSpawn(type: NPCType, x: number, y: number, z: number): boolean | undefined
  • Called when a npc is about to be spawned

    Parameters

    • type: NPCType

      The type of npc

    • x: number

      The x coordinate where the npc will be spawned

    • y: number

      The y coordinate where the npc will be spawned

    • z: number

      The z coordinate where the npc will be spawned

    Returns boolean | undefined

    False if the npc cannot spawn, or undefined to use the default logic

remove

spawn

Generated using TypeDoc