GSC reference › Built-in
GetMapFields()
Built-in (engine)
Server + client
Get the outro movie of the current map in the maptable. Returns undefined if currentmap wasn't found
Signature
GetMapFields([currentmap], [dlcindex], [sessionmodeabbrev])
Parameters
| Name | Required? | Details |
|---|---|---|
| currentmap | Optional | the name of the current map. If ommitted, use Dvar sv_mapname |
| dlcindex | Optional | dlc1..N if DLC. If ommitted, use "base". |
| sessionmodeabbrev | Optional | cp,mp,zm. If ommitted, use current game mode abbreviation |
Example (from Treyarch's docs)
fields = GetMapFields( GetNextMap("cp_mi_sing_blackstation") ) Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- MapShaderConstant()Maps a shader constant to an index.
- MapFloat()Returns a lerped value between <from> and <to> based on <time>.
- GetRootMapName()Returns the root map of a mission
- SetMapCenter()Set the center of the map (used by the network code to optimize position data)
- AnimMappingSearch()Searches animation mapping table to return a animation name when given a animation mapping alias name.
- GetCharacterFields()Returns info for the character pose playerbodytype
- Map_Restart()Restarts the map
- GetMapOrder()Get the index of the current map in the maptable.
- IsMapSubLevel()Returns whether or not the map is a sublevel of a mission
- SwitchMap_Preload()Start preloading a map/level.
- SwitchMap_Switch()Switch to the loaded map/level
- SwitchMap_Load()Start loading a map/level.
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).