DE/isObjectBreakable: Difference between revisions
Jump to navigation
Jump to search
LarSoWiTsH (talk | contribs) (→Syntax) |
LarSoWiTsH (talk | contribs) (→Syntax) |
||
| Line 1: | Line 1: | ||
==Beispiel== | ==Beispiel== | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
Revision as of 19:10, 5 May 2012
Beispiel
Click to collapse [-]
ClientDieses Beispiel erstellt ein Objekt, wenn die Resource startet und überprüft, ob es zerbrechlich ist. (GETESTET!)
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)
Siehe auch