DetonatePlayerSatchels: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (added info about detonateSatchels)
m (delete -> disabled note)
Line 1: Line 1:
{{Server function}}
{{Server function}}
{{Delete|It seems this page was created in confusion.}}
{{Disabled|This function was introduced in {{Commit|41342568036892ace126059ff71229d912e052e9}} and removed in {{Commit|3af6af83c73c1d05fe8bea0a5ad7675ecf9bbf80}}. Use [[detonateSatchels]] instead.}}
This function detonates the thrown satchels of a player, as if they had fired the detonator. Please use [[detonateSatchels]] instead.
This function detonates the thrown satchels of a player, as if they had fired the detonator. Please use [[detonateSatchels]] instead.
__NOTOC__
__NOTOC__

Revision as of 19:51, 19 May 2019

Dialog-warning.png Function has been disabled.

Reason/Note: This function was introduced in 41342 and removed in 3af6a. Use detonateSatchels instead.

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)

Requirements

This template will be deleted.

See Also