dofile("Base.rte/Constants.lua") require("Actors/AI/NativeHumanAI") --dofile("Base.rte/Actors/AI/NativeHumanAI.lua") function Create(self) self.AI = NativeHumanAI:Create(self) end function UpdateAI(self) self.AI:Update(self) end function Update(self) if UInputMan:KeyPressed(28) and self:IsPlayerControlled() then for actor in MovableMan.Actors do if MovableMan:IsActor(actor) then if actor.Team == 0 then actor.Team = 1; actor:GetController().Team = 1; actor:GetController().Player = 1; actor:SetControllerMode(Controller.CIM_PLAYER , 1) elseif actor.Team == 1 then actor.Team = 0; actor:GetController().Team = 0; actor:GetController().Player = 0; actor:SetControllerMode(Controller.CIM_PLAYER , 0) end--PresetMan:ReloadAllScripts() end end end end