ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPlayerMapOpacity

Function

setPlayerMapOpacity

ServerPlayersTrilogy Hub only

Stores the player's map opacity (0-255).

Syntax

bool setPlayerMapOpacity(player thePlayer, int opacity)

Arguments

thePlayerplayer
The player.
opacityint
Opacity 0-255.

Returns

true on success.

Example

setPlayerMapOpacity(player, 200)

Notes

State for scripts. The server stores the value and returns it from getPlayerMapOpacity; the game map does not apply it yet.

See also