Script:detach: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 5: Line 5:
source entity The entity to detach
source entity The entity to detach
target entity The entity to detach from
target entity The entity to detach from
|intro=This undoes link established by the {{Command|attach}} command. It does nothing if the given source entity is not linked to the given target entity.
|intro=This undoes link established by the {{Command|attach}} command. The given source entity will be [[Script:hide|unhidden]] even if it was not linked but it will not be unliked if is linked to an entity different from the given target entity.
}}
}}


[[Category:Script commands linking entities]]
[[Category:Script commands linking entities]]

Latest revision as of 22:40, 21 December 2022

The detach script command is used to unlink the position and rotation of an entity from another entity. This undoes link established by the attach command. The given source entity will be unhidden even if it was not linked but it will not be unliked if is linked to an entity different from the given target entity.

Usage

detach <source> <target>

Context: For self

Parameters:

ParameterTypeDescription
source entity The entity to detach
target entity The entity to detach from