IsPlayerCrosshairVisible: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Laxante101 (talk | contribs) |
||
Line 11: | Line 11: | ||
Returns ''true'' if the player has the crosshair visible, ''false'' otherwise. | Returns ''true'' if the player has the crosshair visible, ''false'' otherwise. | ||
function aim() | |||
if isPlayerCrosshairVisible() then | |||
outputChatBox("your sight is visible") | |||
else | |||
outputChatBox("your crosshair is not visible") | |||
end | |||
end | |||
addCommandHandler("aimcheck", aim) | |||
==See Also== | ==See Also== | ||
{{Client player functions}} | {{Client player functions}} |
Revision as of 21:15, 4 December 2024
Syntax
bool isPlayerCrosshairVisible()
Returns
Returns true if the player has the crosshair visible, false otherwise.
function aim()
if isPlayerCrosshairVisible() then outputChatBox("your sight is visible") else outputChatBox("your crosshair is not visible") end
end addCommandHandler("aimcheck", aim)
See Also
- getLocalPlayer
- getPlayerMapBoundingBox
- getPlayerMapOpacity
- isPlayerMapVisible
- resetBlurLevel
- isPlayerHudComponentVisible
- Shared
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState