Method ToNwPlayer
ToNwPlayer(uint, PlayerSearch)
Converts the specified object ID value into a managed player object.
public static NwPlayer? ToNwPlayer(this uint objectId, PlayerSearch playerSearch = PlayerSearch.All)
Parameters
objectIduintThe object ID to convert.
playerSearchPlayerSearchMethods to use to resolve the player.
Returns
- NwPlayer
The associated player for this object, otherwise null.