Category:Script commands linking entities

From Arx Libertatis Wiki
Jump to navigation Jump to search

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.