Skip to content

Function; Event_IsDone

Cloaked edited this page Jun 10, 2020 · 1 revision

Event_IsDone(<sEventName>)

Description

Returns true if the event <sEventName> has finished playing.
Used in SP scripts to prevent two events from running simultaneously or to wait for the end of an event before adding a new rule.

Example

if Event_IsDone("intelevent_beginharvesting")==1 then

...code...

end

Arguments

<sEventName>: the name of the event defined in the Events table.

Scope

Related Pages

Function Reference

SCAR (SCripting at Relic) Reference

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

Clone this wiki locally