Jump to content

MarkerMyInfo

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (MarkerMyInfo – created via PowerShell script (2025-11-11T21:12:24Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: MarkerMyInfo
Function Description: Creates and displays a marker with the player's name, slot ID, and unit ID for all units in the game; retrieves player info, generates a formatted text string, places a marker at the player's position, and schedules its removal after a defined duration.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.MarkerMyInfo( table EventData )
Return Value: nil
Parameters: Name Description
EventDataEvent data table containing the initiator's player information; includes getPlayerName() to extract player name and initiate marker creation.
Example: CMM.MarkerMyInfo(EventData)
Example Description: Displays a marker for PlayerX with details including name, slot ID, and unit ID at their position, and removes it after the TTL period defined in CMM.myInfo.ttl.
Related Functions:
Notes: