Category:Script commands linking entities: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "These script commands make it so that entities will move with other entities. {{ScriptCommandCategory}}")
 
mNo edit summary
 
Line 1: Line 1:
These [[Script:Commands|script commands]] make it so that [[Entity|entities]] will move with other entities.
These [[Script:Commands|script commands]] make it so that [[Entity|entities]] will move (or will no longer move) with other entities.


{{ScriptCommandCategory}}
{{ScriptCommandCategory}}

Latest revision as of 13:04, 19 June 2022

These script commands make it so that entities will move (or will no longer move) with other entities.

ComandContextDescription
attach <source> <sourcevertex> <target> <targetvertex>For selfLink the position and rotation of an entity to another entity.
detach <source> <target>For selfUnlink the position and rotation of an entity from another entity.
equip [-r] playerAny EntityMake the player equip or unequip the caller.
inventory add <script>Any EntityCreate a single new item and place it into the inventory.
inventory addfromscene <item>Any EntityAdd an existing item to the inventory.
inventory addmulti <script> <count*>Any EntityCreate a new item stack and place it into the inventory.
inventory playeradd <script>IgnoredCreate a single new item and place it into the player inventory.
inventory playeraddfromscene <item>For selfAdd an existing item to the player inventory.
inventory playeraddmulti <script> <count*>IgnoredCreate a new item stack and place it into the player inventory.
linkobjtome <source*> <vertex>Any EntityLink the position and rotation of an entity to the caller.
replaceme <script>Any EntityCreate a new replacement entity.
setweapon [-h] <class>NPCsCreate and equip a weapon.
specialfx torchItemsEquip or unequip the caller as a torch.
specialfx torchoffIgnoredUnequip and douse the torch currently equipped by the player.