destroy

From Arx Libertatis Wiki
Jump to navigation Jump to search

The destroy script command is used to destroy an entity or spell. For item stacks, this command reduces the number of items in the stack by 1 and only destroys the stack if the count reaches 0. Other entities are always destroyed. 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)