-- Harry Modding -- 30.12.2013 --Rotate Rotate = {}; function Rotate.prerequisitesPresent(specializations) return true; end; function Rotate:load(xmlFile) self.leftfront = Utils.indexToObject (self.components, getXMLString (xmlFile, "vehicle.Rotate.leftfront#index")) ; self.rightfront = Utils.indexToObject (self.components, getXMLString (xmlFile, "vehicle.Rotate.rightfront#index")) ; self.leftback = Utils.indexToObject (self.components, getXMLString (xmlFile, "vehicle.Rotate.leftback#index")) ; self.rightback = Utils.indexToObject (self.components, getXMLString (xmlFile, "vehicle.Rotate.rightback#index")) ; self.RotateState = false ; end; function Rotate:delete() end; function Rotate:mouseEvent(posX, posY, isDown, isUp, button) end; function Rotate:keyEvent(unicode, sym, modifier, isDown) end; function Rotate:update(dt) if self:getIsActiveForInput () then if InputBinding.hasEvent (InputBinding.TASTE_Rotate) then self.RotateState = (not self.RotateState) ; end; if self.Rotate == true then setRotate (self.leftfront, 0, 0, -90) ; setRotate (self.rightfront, 0, 0, -90) ; setRotate (self.leftback, 0, 0, -90) ; setRotate (self.rightback, 0, 0, -90) ; elseif self.Rotate == false then setRotate (self.leftfront, 0, 0, 0) ; setRotate (self.rightfront, 0, 0, 0) ; setRotate (self.leftback, 0, 0, 0) ; setRotate (self.rightback, 0, 0, 0) ; end; end; end; function Rotate:updateTick(dt) end; function Rotate:draw() end;