Script:loadanim: Difference between revisions
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 | |||
|description=load an animation into a slot | |||
|context=any | |||
|flags= | |||
p Load an animation for the player instead of the calling entity | |||
|parameters= | |||
animslot string The animation slot to modify | |||
file path Relative path to the animation file to use | |||
}} | |||
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>. | ||
Revision as of 17:08, 15 April 2020
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:
Parameter | Type | Description |
---|---|---|
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
.