DetonateSatchels

From Multi Theft Auto: Wiki
Revision as of 12:58, 13 January 2014 by Qaisjp (talk | contribs) (Reverting variable name change in favour towards "class usage")
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 ( 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