Re: Changing AI Default mode or Disabling AI completely.
Freeflow wrote:
The AI can't be fiddled with in this build.
It
can be disabled through Lua. You could also attach a simple script to actors to prevent them from walking and crouching while on sentry, lilke below.
Code:
function Update(self)
if self:IsPlayerControlled() == false and self.AIMode == Actor.AIMODE_SENTRY then
self:GetController():SetState(Controller.BODY_CROUCH,false);
self:GetController():SetState(Controller.MOVE_RIGHT,false);
self:GetController():SetState(Controller.MOVE_LEFT,false);
end
end