IT/detonateSatchels: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{IT/MainP}} {{IT/Funzioni client server}} __NOTOC__ Questa funzione può essere utilizzata per far esplodere una cartella esplosiva. Questa funzione è disponibile dalla versio...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{IT/MainP}}
{{IT/MainP}}
{{IT/Funzioni client server}}
{{IT/Funzioni server client}}
__NOTOC__
__NOTOC__
Questa funzione può essere utilizzata per far esplodere una cartella esplosiva.
Questa funzione può essere utilizzata per far esplodere una cartella esplosiva.
Line 7: Line 7:


==Sintassi==
==Sintassi==
<section name="IT/Client" class="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 cartella 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}}

Latest revision as of 13:08, 3 August 2011

« Torna alla Pagina principale italiana .


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 cartella 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

Shared