Script:destroy: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 13: Line 13:


[[Category:Script control flow]]
[[Category:Script control flow]]
[[Category:Script commands destroying entities]]

Revision as of 12:35, 19 June 2022

The destroy script command is used to destroy an entity or spell. The entity or spell will be marked for deletion. It will not be deleted until the end of the frame, but all further script events will be blocked and the entity is hidden immediately. If the given entity is also the calling entity, the script execution ends after this command.

Usage

destroy <entity>
destroy <spell>

Context: For self

Parameters:

ParameterTypeDescription
entity entity The entity to destroy.
spell spell The spell to destroy. (Added in Arx Libertatis 1.3)