IT/detonateSatchels: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


==Sintassi==
==Sintassi==
<section name="IT/Client" class="IT/client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool detonateSatchels ( )
bool detonateSatchels ( )
Line 19: Line 19:
</section>
</section>


==Returns==
==Valori restituiti==
Returns true if successful, false otherwise.
Restituisce ''true'' in caso di successo, altrimenti restituisce ''false''.


==Example==
==Esempio==
The below example allows a player to detonate any of their placed satchels via the command /blowsatchels
L'esempio che segue permette ad un giocatore di far esplodere qualunque cartelle abbia posto tramite il comando /blowsatchels
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function blowMySatchels()
function blowMySatchels()
     detonateSatchels()
     detonateSatchels()
     outputChatBox("Satchels blown!", 0, 255, 0)
     outputChatBox("Cartella esplosa!", 0, 255, 0)
end
end
addCommandHandler("blowsatchels", blowMySatchels)
addCommandHandler("blowsatchels", blowMySatchels)
Line 34: Line 34:
</section>
</section>


==See also==
==Vedere anche==
{{Client projectile functions}}
{{Client projectile functions}}

Revision as of 13:07, 3 August 2011

« Torna alla Pagina principale italiana .

Template:IT/Funzioni client server

Questa funzione può essere utilizzata per far esplodere una cartella esplosiva.

Questa funzione è disponibile dalla versione 1.1 in poi.

Sintassi

Click to collapse [-]
Client
bool detonateSatchels ( )
Click to collapse [-]
Server
bool detonateSatchels ( element Player )

Valori restituiti

Restituisce true in caso di successo, altrimenti restituisce false.

Esempio

L'esempio che segue permette ad un giocatore di far esplodere qualunque cartelle abbia posto tramite il comando /blowsatchels

Click to collapse [-]
Client
function blowMySatchels()
    detonateSatchels()
    outputChatBox("Cartella esplosa!", 0, 255, 0)
end
addCommandHandler("blowsatchels", blowMySatchels)

Vedere anche