Template:Player functions: Difference between revisions
Jump to navigation
Jump to search
m (Template reworked) |
(Rework) |
||
Line 1: | Line 1: | ||
<includeonly> | |||
<ul> | <ul> | ||
<li>[[getAlivePlayers]]</li> | {{#if: {{{1|}}} | ||
<li>[[getDeadPlayers]]</li> | | {{#ifeq: {{lc:{{{1}}}}} | client | ||
<li>[[getPlayerACInfo]]</li> | | | ||
<li>[[getPlayerAnnounceValue]]</li> | <!-- CLIENT functions --> | ||
<li>[[getPlayerCount]]</li> | <li>[[getLocalPlayer]]</li> | ||
<li>[[getPlayerIdleTime]]</li> | <li>[[getPlayerMapBoundingBox]]</li> | ||
<li>[[getPlayerIP]]</li> | <li>[[getPlayerMapOpacity]]</li> | ||
<li>[[isPlayerMapVisible]]</li> | |||
<li>[[resetBlurLevel]]</li> | |||
<li>[[isPlayerHudComponentVisible]]</li> | |||
| {{#ifeq: {{lc:{{{1}}}}} | server | |||
| | |||
<!-- SERVER functions --> | |||
<li>[[getAlivePlayers]]</li> | |||
<li>[[getDeadPlayers]]</li> | |||
<li>[[getPlayerACInfo]]</li> | |||
<li>[[getPlayerAnnounceValue]]</li> | |||
<li>[[getPlayerCount]]</li> | |||
<li>[[getPlayerIdleTime]]</li> | |||
<li>[[getPlayerIP]]</li> | |||
<li>[[getPlayerVersion]]</li> | |||
<li>[[getRandomPlayer]]</li> | |||
<li>[[isPlayerMuted]]</li> | |||
<li>[[redirectPlayer]]</li> | |||
<li>[[resendPlayerACInfo]]</li> | |||
<li>[[resendPlayerModInfo]]</li> | |||
<li>[[setPlayerAnnounceValue]]</li> | |||
<li>[[setPlayerMuted]]</li> | |||
<li>[[setPlayerScriptDebugLevel]]</li> | |||
<li>[[setPlayerTeam]]</li> | |||
<li>[[setPlayerVoiceBroadcastTo]]</li> | |||
<li>[[setPlayerVoiceIgnoreFrom]]</li> | |||
<li>[[setPlayerWantedLevel]]</li> | |||
<li>[[spawnPlayer]]</li> | |||
<li>[[takePlayerScreenShot]]</li> | |||
}} | |||
}} | |||
</br> | |||
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li> | |||
}} | |||
<!-- SHARED functions--> | |||
<li>[[getPlayerTeam]]</li> | |||
<li>[[getPlayerBlurLevel]]</li> | |||
<li>[[setPlayerBlurLevel]]</li> | |||
<li>[[getPlayerSerial]]</li> | |||
<li>[[forcePlayerMap]]</li> | |||
<li>[[getPlayerScriptDebugLevel]]</li> | <li>[[getPlayerScriptDebugLevel]]</li> | ||
<li>[[getPlayerFromName]]</li> | |||
<li>[[ | <li>[[getPlayerMoney]]</li> | ||
<li>[[ | <li>[[getPlayerName]]</li> | ||
<li>[[ | <li>[[getPlayerNametagColor]]</li> | ||
<li>[[ | <li>[[getPlayerNametagText]]</li> | ||
<li>[[getPlayerPing]]</li> | |||
<li>[[ | <li>[[getPlayerWantedLevel]]</li> | ||
<li>[[givePlayerMoney]]</li> | |||
<li>[[ | <li>[[isPlayerMapForced]]</li> | ||
<li>[[ | <li>[[isPlayerNametagShowing]]</li> | ||
<li>[[ | <li>[[setPlayerHudComponentVisible]]</li> | ||
<li>[[setPlayerMoney]]</li> | |||
<li>[[ | <li>[[setPlayerNametagColor]]</li> | ||
<li>[[setPlayerNametagShowing]]</li> | |||
<li>[[ | <li>[[setPlayerNametagText]]</li> | ||
<li>[[ | <li>[[takePlayerMoney]]</li> | ||
<li>[[ | <li>[[countPlayersInTeam]]</li> | ||
<li>[[ | <li>[[getPlayersInTeam]]</li> | ||
<li>[[ | <li>[[isVoiceEnabled]]</li> | ||
<li>[[ | <li>[[setControlState]]</li> | ||
<li>[[getControlState]]</li> | |||
</ul> | </ul> | ||
</includeonly> | |||
<noinclude> | |||
{{ | {{Functions list info}} | ||
[[Category:Functions templates]]</noinclude> | |||
Revision as of 17:44, 6 September 2024
The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed
Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.