setmainevent

From Arx Libertatis Wiki
Revision as of 07:21, 24 July 2022 by Ds (talk | contribs)
Jump to navigation Jump to search

ℹ️  This command does exactly the same as setstatus.

The setmainevent script command is used to set an event to be sent periodically for an entity. Initially, all entities have their heartbeat event set to the main event and dead NPC's will have it set to dead.

The rate at which the main even is executed depends on the number of entities in the area. To run commands at specific intervals use the timer command.

Usage

setmainevent <event>

Context: Any Entity

Parameters:

ParameterTypeDescription
event event The name of the event to set as the entity's heartbeat event