MarkerMyPerms
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerMyPerms | |
| Function Description: | Displays a formatted text message showing a player's permissions to all units in the game; retrieves player info and permission data from the auth table, validates it, and sends a visible text message if valid. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerMyPerms( 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 permission lookup. | |
| Example: | CMM.MarkerMyPerms(EventData,UnitID) | |
| Example Description: | Shows the permission details for PlayerX, including owner, admin, mod, GM, Patreon, and member status, and displays it to the player via a 30-second text message. | |
| Related Functions: | ||
| Notes: | --TODO Function incomplete | |