Difference between revisions of "DetonateSatchels"

From Multi Theft Auto: Wiki
m (Maybe not)
Line 1: Line 1:
 
{{Server client function}}
 
{{Server client function}}
 
__NOTOC__
 
__NOTOC__
This function can be used to detonate a players satchels
+
This function can be used to detonate a players satchels.
 +
 
 +
This function is available from version 1.1 onwards.
  
 
==Syntax==
 
==Syntax==

Revision as of 23:13, 7 July 2011

This function can be used to detonate a players satchels.

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)