Skip to content

Class: CMapManager

Manages active PDA/minimap locations.

Source

C++ class CMapManager

Custom Constructor

CMapManager

Remarks

Level scripts usually work with the level-owned map manager through map spot helpers instead of creating wrappers. Removed locations are queued for deferred destruction and should not be reused from script.

Constructors

Constructor

ts
new CMapManager(): CMapManager;

Create a map manager wrapper.

Returns

CMapManager

Methods

DisableAllPointers()

ts
DisableAllPointers(): void;

Hide pointers for all map locations.

Returns

void

Remarks

Only pointer arrows are disabled. The map spots themselves remain enabled.


RemoveMapLocation()

ts
RemoveMapLocation(location: CMapLocation): void;

Remove a specific map location.

Parameters

ParameterTypeDescription
locationCMapLocationLocation object to remove.

Returns

void

Remarks

In single-player this also releases linked game-task map locations. Native location objects are destroyed on the manager's deferred destroy queue, so do not call methods on location after removal.


RemoveMapLocationByObjectID()

ts
RemoveMapLocationByObjectID(id: number): void;

Remove all map locations attached to an object id.

Parameters

ParameterTypeDescription
idnumberGame object id.

Returns

void

Remarks

In single-player this also releases linked game-task map locations. Native location objects are destroyed on the manager's deferred destroy queue, so any old CMapLocation references become unsafe to use.