GSC reference › Built-in
AnimMappingSearch()
Built-in (engine)
Server
Called on: actor
Searches animation mapping table to return a animation name when given a animation mapping alias name.
Signature
<actor> AnimMappingSearch(<animation_alias_name>)
Called on an entity: actor AnimMappingSearch(...)
Parameters
| Name | Required? |
|---|---|
| animation_alias_name | Required |
Example (from Treyarch's docs)
self AnimMappingSearch("anim_arrive_cover_left_crouch") Real uses in BO3's scripts
Called 12 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_astro.gsc, line 460
headbutt_anim = self animmappingsearch(istring("anim_astro_headbutt")); - scripts/zm/_zm_ai_faller.gsc, line 287
faller_anim = self animmappingsearch(istring("anim_faller_emerge")); - scripts/zm/zm_moon_ai_quad.gsc, line 328
level.var_9fcbbc83["phase_forward"] = self animmappingsearch(istring("anim_zombie_phase_f_long_b")); - scripts/shared/ai/archetype_apothicon_fury.gsc, line 1660
jukeanim = entity animmappingsearch(istring(jukeanimalias)); - scripts/shared/ai/systems/animation_state_machine_utility.gsc, line 36
animationname = entity animmappingsearch(istring(aliasname));
Related built-ins
- ForceGameModeMappings()Forces the users controller mappings for a specific game mode (or resets to user defaults)
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).