Script:linkobjtome: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "{{ScriptCommandPage |description=link the position and rotation of an entity to the caller |context=any |parameters= source entity* The entity to attach vertex string Name of the vertex in the source/target entity to make the attachment relative to |intro=If the calling entity is moved, rotated or animated than the attached source entity will automatically move and rotate with it so that the specified source and target vertices on the two entities share the same position...")
 
mNo edit summary
 
Line 5: Line 5:
source entity* The entity to attach
source entity* The entity to attach
vertex string Name of the vertex in the source/target entity to make the attachment relative to
vertex string Name of the vertex in the source/target entity to make the attachment relative to
|intro=If the calling entity is moved, rotated or animated than the attached source entity will automatically move and rotate with it so that the specified source and target vertices on the two entities share the same position. This attachment is automatically done for equipped items but can also be done for other entities using this command. This command is equivalent to {{Command|attach|<source> <vertex> self <vertex>}}. To break the attachment use the {{Command|detach}} command.
|intro=If the calling entity is moved, rotated or animated than the attached source entity will automatically move and rotate with it so that the specified source and target vertices on the two entities share the same position. This attachment is automatically done for equipped items but can also be done for other entities using this command. This command is roughly equivalent to {{Command|attach|<source> <vertex> self <vertex>}}. To break the attachment use the {{Command|detach}} command.
}}
}}


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

Latest revision as of 21:13, 23 June 2022

The linkobjtome script command is used to link the position and rotation of an entity to the caller for an entity. If the calling entity is moved, rotated or animated than the attached source entity will automatically move and rotate with it so that the specified source and target vertices on the two entities share the same position. This attachment is automatically done for equipped items but can also be done for other entities using this command. This command is roughly equivalent to attach <source> <vertex> self <vertex>. To break the attachment use the detach command.

Usage

linkobjtome <source*> <vertex>

Context: Any Entity

Parameters:

ParameterTypeDescription
source entity or variable The entity to attach
vertex string Name of the vertex in the source/target entity to make the attachment relative to