Script:loadanim: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "{{Stub}} This page describes the <code>loadanim</code> script command. Usage: loadanim [-p] <animslot> <file> Flags: * <code>-p</code>: Load an animation for the player i...")
 
No edit summary
Line 1: Line 1:
{{Stub}}
{{Stub}}
 
{{ScriptCommandPage
This page describes the <code>loadanim</code> script command.
|description=load an animation into a slot
 
|context=any
Usage:
|flags=
 
p Load an animation for the player instead of the calling entity
loadanim [-p] <animslot> <file>
|parameters=
 
animslot string The animation slot to modify
Flags:
file path Relative path to the animation file to use
* <code>-p</code>: Load an animation for the player instead of the current entity
}}
 
Parameters:
{| class="wikitable sortable"
! Parameter
! Type
! Description
|-
| <code><animslot></code>
| {{text}}
| Name of the [[Script:Animation Slot|animation slot]] to load the animation into
|-
| <code><file></code>
| <code>path</code>
| Relative path of the animation file to load
|}


For NPC entities or when using the <code>-p</code> flag the path is relative to <code>graph/obj3d/anims/npc</code>. <br>
For NPC entities or when using the <code>-p</code> flag the path is relative to <code>graph/obj3d/anims/npc</code>. <br>
Otherwise it is relative to <code>graph/obj3d/anims/fix_inter</code>.
Otherwise it is relative to <code>graph/obj3d/anims/fix_inter</code>.
[[Category:Script commands]]

Revision as of 17:08, 15 April 2020

This article is a stub - you can help by expanding it. See the Wiki FAQ.

The loadanim script command is used to load an animation into a slot for an entity.

Usage

loadanim [-p] <animslot> <file>

Context: Any Entity

Flags:

 -p: Load an animation for the player instead of the calling entity

Parameters:

ParameterTypeDescription
animslot string The animation slot to modify
file path Relative path to the animation file to use

For NPC entities or when using the -p flag the path is relative to graph/obj3d/anims/npc.
Otherwise it is relative to graph/obj3d/anims/fix_inter.