DetonateSatchels: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
(One intermediate revision by one other user not shown)
Line 11: Line 11:
<section name="Server" class="server" show="true">
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool detonateSatchels ( player thePlayer )
bool detonateSatchels ( player Player )
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>
Line 34: Line 34:


[[it:detonateSatchels]]
[[it:detonateSatchels]]
[[pl:detonateSatchels]]

Revision as of 13:30, 21 July 2016

This function can be used to detonate a players satchels.

Syntax

Click to collapse [-]
Client
bool detonateSatchels ( )
Click to collapse [-]
Server
bool detonateSatchels ( player Player )

Returns

Returns true if successful, false otherwise.

Example

The below example allows a player to detonate any of their placed satchels via the command /blowsatchels

Click to collapse [-]
Client
function blowMySatchels()
    detonateSatchels()
    outputChatBox("Satchels blown!", 0, 255, 0)
end
addCommandHandler("blowsatchels", blowMySatchels)

See also