From Multi Theft Auto: Wiki
Jump to navigation
Jump to search
|
|
| Line 1: |
Line 1: |
| ==Beispiel==
| |
| <section name="Client" class="client" show="true">
| |
| Dieses Beispiel erstellt ein Objekt, wenn die Resource startet und überprüft, ob es zerbrechlich ist. (GETESTET!)
| |
| <syntaxhighlight lang="lua">addEventHandler("onClientResourceStart",resourceRoot,function()
| |
| local object = createObject ( 1337, 5540.6654, 1020.55122, 1240.545 )
| |
| if isObjectBreakable(object) then
| |
| outputChatBox("Yes, the object is breakable.")
| |
| else
| |
| outputChatBox("No, the object is not breakable")
| |
| end
| |
| end)
| |
| </syntaxhighlight>
| |
| </section>
| |
|
| |
| ==Siehe auch== | | ==Siehe auch== |
| {{Object functions}} | | {{Object functions}} |
Revision as of 19:10, 5 May 2012