FindPlayerUCID
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | FindPlayerUCID | |
| Function Description: | Retrieves the UCID of a player by their name from the mission player list, returning the UCID if found or -1 if not present. | |
| File Location: | cmm.netFunctions.lua | |
| Syntax: | CMM.FindPlayerUCID( string PlayerName ) | |
| Return Value: | string or number | |
| Parameters: | Name | Description |
| PlayerName | The name of the player as it appears in the mission editor or in-game. | |
| Example: | CMM.FindPlayerUCID("OzDeaDMeaT") | |
| Example Description: | Looks up the UCID for the player named "OzDeaDMeaT" in the player list and returns it if found, otherwise returns -1. | |
| Related Functions: | ||
| Notes: | ||