DetonateSatchels: Difference between revisions
Jump to navigation
Jump to search
(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...") |
ThePiotrek (talk | contribs) No edit summary |
||
(9 intermediate revisions by 5 users not shown) | |||
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. | ||
==Syntax== | ==Syntax== | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
Line 12: | 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 Player ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
==Returns== | ==Returns== | ||
Returns true if successful, false otherwise. | Returns ''true'' if successful, ''false'' otherwise. | ||
==Example== | ==Example== | ||
Line 30: | Line 29: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
==See also== | |||
{{Client projectile functions}} | |||
[[it:detonateSatchels]] | |||
[[pl:detonateSatchels]] |
Revision as of 13:30, 21 July 2016
This function can be used to detonate a players satchels.
Syntax
Click to collapse [-]
Clientbool detonateSatchels ( )
Click to collapse [-]
Serverbool 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 [-]
Clientfunction blowMySatchels() detonateSatchels() outputChatBox("Satchels blown!", 0, 255, 0) end addCommandHandler("blowsatchels", blowMySatchels)
See also
- createProjectile
- getProjectileCounter
- getProjectileCreator
- getProjectileForce
- getProjectileTarget
- getProjectileType
- setProjectileCounter
Shared