FindMap

Last Updated2015-09-10
Created At2015-06-28

Returns whether a full or partial map name is found or can be resolved

native FindMapResult FindMap(const char[] map, char[] foundmap, int maxlen)

Parameters

const char[] map
Map name (usually same as map path relative to maps/ dir, excluding .bsp extension).
char[] foundmap
Resolved map name. If the return is FindMap_FuzzyMatch or FindMap_NonCanonical the buffer will be the full path.
int maxlen
Maximum length to write to map var.

Return Value

FindMapResult Result of the find operation. Not all result types are supported on all games.