DetonatePlayerSatchels: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (tweak disabled note)
(Remove obsolete Requirements section)
 
Line 22: Line 22:
addCommandHandler("detonate", cmdDetonateSatchels)
addCommandHandler("detonate", cmdDetonateSatchels)
</syntaxhighlight>
</syntaxhighlight>
==Requirements==
{{Requirements|1.1|n/a|}}


==See Also==
==See Also==
{{Player functions}}
{{Player functions}}

Latest revision as of 17:12, 7 November 2024

Dialog-warning.png 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