Skip to main content
Billable Resource
Register a death event for an Agent NPC in your instance. This permanently removes the Agent NPC from your game world and records their final state. Death events for Agent NPCs are significant as they affect the social and economic dynamics of your game world. The Agent NPC’s wealth may be redistributed, and their relationships with other characters will be terminated.
// Register a death event for the Agent NPC
AgentNPCDeathEvent deathEvent = PixocracySDK.AgentNPCManager().registerDeathEvent(instance, agentNpc);

// The Agent NPC is now considered dead and will be removed from the instance
// Their wealth may be redistributed and their relationships will be terminated