API -
return function() local app = getApp(); local myObject = app.createGameObject(); myObject.setAngle(90); --rotates clockwise on it's side 90 degrees. --as soon as the script ends the object will be destroyed automatically. keepAlive(); end
Last updated 2 years ago