GSC reference › Built-in
AnimMode()
Built-in (engine)
Server
AI Called on: entity
Set the way that animation deltas are interpreted by the game engine
Signature
<entity> AnimMode(<mode>, [clear path])
Called on an entity: entity AnimMode(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| mode | Required | which animmode to use. Must be 'gravity', 'nogravity', 'angle deltas', 'pos deltas', 'normal', 'normal_nogravity', 'zonly_physics', 'nophysics', 'none' |
| clear path | Optional | The clear path flag |
Example (from Treyarch's docs)
self AnimMode( "gravity" )
Notes
none: Use default animmode behavior (i.e., code controls the movement).
Real uses in BO3's scripts
Called 73 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_faller.gsc, line 162
entity animmode("nogravity", 0); - scripts/zm/_zm_ai_monkey.gsc, line 1716
self animmode("none"); - scripts/zm/_zm_behavior.gsc, line 1746
entity animmode("noclip", 1); - scripts/zm/_zm_weap_staff_air.gsc, line 862
self animmode("none"); - scripts/zm/archetype_genesis_keeper_companion.gsc, line 160
entity animmode("normal", 0);
Related built-ins
- OrientMode()Set the orient mode of this actor.
- PathMode()Set the path mode of this actor.
- SetSteeringMode()Sets the steering mode for the actor.
- GetPathMode()Get the path mode of this actor.
- DamageMode()Set the damage mode of this actor.
- TraverseMode()Set the traverse mode of this actor.
- GetFireMode()Returns the firemode
- GetOrientMode()Set the orient mode of this actor.
- SetModel()Set the model for the entity
- SetUIModelValue()Sets a UIModel from the model being passed in.
- CreateUIModel()Creates and returns a UIModel from a parent model.
- GetUIModel()Returns a UIModel from the parent model passed in and the name of the model to retrieve.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).