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

NameRequired?Details
currentmapOptional the name of the current map. If ommitted, use Dvar sv_mapname
dlcindexOptional dlc1..N if DLC. If ommitted, use "base".
sessionmodeabbrevOptional 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

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).