DetonatePlayerSatchels: Difference between revisions
Jump to navigation
Jump to search
Zangomangu (talk | contribs) No edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Server function}} | |||
{{Disabled|This function was introduced in {{Commit|41342568036892ace126059ff71229d912e052e9}} and merged with [[detonateSatchels]] in {{Commit|3af6af83c73c1d05fe8bea0a5ad7675ecf9bbf80}}.}} | |||
This function detonates the thrown satchels of a player, as if they had fired the detonator. Please use [[detonateSatchels]] instead. | |||
__NOTOC__ | __NOTOC__ | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 24: | Line 22: | ||
addCommandHandler("detonate", cmdDetonateSatchels) | addCommandHandler("detonate", cmdDetonateSatchels) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Player functions}} | {{Player functions}} |
Latest revision as of 17:12, 7 November 2024
Function has been disabled. | |
Reason/Note: This function was introduced in 41342 and merged with detonateSatchels in 3af6a. |
This function detonates the thrown satchels of a player, as if they had fired the detonator. Please use detonateSatchels instead.
Syntax
bool detonatePlayerSatchels( player thePlayer )
Required Arguments
- thePlayer: the player that should have their thrown satchels detonated.
Returns
Returns true if a valid player element was passed, false otherwise.
Example
This example will allow players to detonate their thrown satchels via the command /detonate
function cmdDetonateSatchels(plr) detonatePlayerSatchels(plr) end addCommandHandler("detonate", cmdDetonateSatchels)
See Also
- 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