DetonateSatchels

From Multi Theft Auto: Wiki
Revision as of 07:10, 16 December 2011 by OpenIDUser32 (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function can be used to detonate a players satchels.

ADDED/UPDATED IN VERSION 1.1 :

This function is available from version 1.1 onwards.

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)

See also