Class NpcSpawned

java.lang.Object
net.storm.api.events.NpcSpawned

public class NpcSpawned extends Object
An event fired when an NPC spawns in the game world.

This event is triggered when an NPC becomes visible in the game world. This can occur when a new NPC is created, when the player enters an area where an NPC exists, during scene loading, or when an NPC respawns after being killed.

See Also:
  • Constructor Details

    • NpcSpawned

      public NpcSpawned()
  • Method Details

    • getActor

      public IActor getActor()
      Gets the spawned NPC as a generic actor.

      This is a convenience method for code that works with actors generically rather than specifically with NPCs.

      Returns:
      the NPC as an IActor