DetonateSatchels: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Zangomangu (talk | contribs) mNo edit summary |
||
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 ( | bool detonateSatchels ( player thePlayer ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
==Returns== | ==Returns== | ||
Returns true if successful, false otherwise. | Returns ''true'' if successful, ''false'' otherwise. | ||
==Example== | ==Example== |
Revision as of 17:42, 12 January 2014
This function can be used to detonate a players satchels.
Syntax
Click to collapse [-]
Clientbool detonateSatchels ( )
Click to collapse [-]
Serverbool detonateSatchels ( player thePlayer )
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 [-]
Clientfunction blowMySatchels() detonateSatchels() outputChatBox("Satchels blown!", 0, 255, 0) end addCommandHandler("blowsatchels", blowMySatchels)