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
new CMapManager(): CMapManager;Create a map manager wrapper.
Returns
CMapManager
Methods
DisableAllPointers()
DisableAllPointers(): void;Hide pointers for all map locations.
Returns
void
Remarks
Only pointer arrows are disabled. The map spots themselves remain enabled.
RemoveMapLocation()
RemoveMapLocation(location: CMapLocation): void;Remove a specific map location.
Parameters
| Parameter | Type | Description |
|---|---|---|
location | CMapLocation | Location 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()
RemoveMapLocationByObjectID(id: number): void;Remove all map locations attached to an object id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Game 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.