Script:on executeline

From Arx Libertatis Wiki
Jump to navigation Jump to search

The executeline script event is an internal event used to execute a delayed command parameter. As the name suggests, execution is resumed from a saved position in the script file until the end of the line or {…} block unless a goto or gosub is executed, in which case execution proceeds as normal until an accept or refuse is reached. The executeline event is also used for the script console.

Unlike other events, this event is not sent to both the entity instance and entity class script but only to the script containing the original command.

While scripts are not prevented from using executeline as a normal event name and sending such events using sendevent, this does not interact with the internal executeline event: neither can scripts intercept the internal executeline event or cause arbitrary lines to be executed.