|
|
| Line 1: |
Line 1: |
| __NOTOC__
| |
| {{DE/Client function}}
| |
|
| |
|
| Diese Funktion erstellt ein Feuer, das sich etwas verbreitet und nach einer Weile verschwindet.
| |
|
| |
|
| |
| ==Syntax==
| |
| <syntaxhighlight lang="lua">bool createFire ( float x, float y, float z [, float groesse = 1.8 ] )</syntaxhighlight>
| |
|
| |
| ===Benoetigte Argumente===
| |
| *'''x, y, z:''' Die Koordinaten des Feuers
| |
|
| |
| ===Optionale Argumente===
| |
| *'''groesse:''' Die Groesse des Feuer
| |
|
| |
| ===Returns===
| |
| Gibt "true" wieder, wenn das Feuer erstellt wurde.
| |
| "False" wenn nicht.
| |
| Es können maximal 60 aktive Feuer exestien.
| |
|
| |
| == Beispiel ==
| |
|
| |
| <section name="Client" class="client" show="true">
| |
| <syntaxhighlight lang="lua">
| |
| function burn(commandName, theSize)
| |
| if theSize then
| |
| local x, y, z = getElementPosition(getLocalPlayer())
| |
| createFire(x, y, z, theSize)
| |
| outputChatBox("Burn, buuuuurn >:]")
| |
| else
| |
| outputChatBox("Syntax: /fire <size>")
| |
| end
| |
| end
| |
| addCommandHandler("fire", burn)
| |
| </syntaxhighlight>
| |
| </section>
| |
|
| |
| ==Andere Funktionen==
| |
| {{DE/Client fire functions}}
| |