DetonateSatchels

From Multi Theft Auto: Wiki
Revision as of 17:07, 7 July 2011 by Arran Fortuna (talk | contribs) (Created page with "{{Server client function}} __NOTOC__ This function can be used to detonate a players satchels ==Syntax== <section name="Client" class="client" show="true"> <syntaxhighlight lang="lua"> bool de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function can be used to detonate a players satchels

Syntax

Click to collapse [-]
Client
bool detonateSatchels ( )
Click to collapse [-]
Server
bool detonateSatchels ( element 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)