testobj = game.CurrentScene.Objects["xyz"]
testobj = getObject("Game.GameCurrentScene.SceneObjects[xyz]")
if "xyz" in game.CurrentScene.Objects then
testobj = game.CurrentScene.Objects["xyz"]
blabla....
end
testobj = game.CurrentScene.Objects["xyz"]
if testobj ~= nil then
end
testobj = game.CurrentScene.Objects["xyz"]
function contains(arr, name)
for i = 1, #arr do
if arr[i]:getName()==name then
return true
end
end
return false
end
print(contains(game.CurrentScene.Objects, "Objekt7"))
print( type(var) )