MarkerMyInfo
Appearance
| 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 |
| EventData | Event 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: | ||