Script:setmainevent: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Notice|This command does exactly the same as {{Command|setstatus}}.}} {{ScriptCommandPage |description=set an event to be sent periodically |context=any |p...") |
mNo edit summary |
||
Line 6: | Line 6: | ||
event event The name of the event to set as the [[entity]]'s heartbeat event | event event The name of the event to set as the [[entity]]'s heartbeat event | ||
|intro=Initially, all entities have their heartbeat event set to the {{Event|main}} event and dead NPC's will have it set to {{Event|dead}}. | |intro=Initially, all entities have their heartbeat event set to the {{Event|main}} event and dead NPC's will have it set to {{Event|dead}}. | ||
To run commands at specific intervals use the {{Command|timer}} command. | |||
}} | }} |
Revision as of 07:20, 24 July 2022
ℹ️ 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
.
To run commands at specific intervals use the timer
command.
Usage
setmainevent <event>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
event |
event |
The name of the event to set as the entity's heartbeat event |