Data Realms Fan Forums
http://45.55.195.193/

Need help with AI
http://45.55.195.193/viewtopic.php?f=1&t=18011
Page 1 of 1

Author:  CCnewplayer [ Thu Mar 04, 2010 12:33 am ]
Post subject:  Need help with AI

I wanna to know ho to make the AI stop even jumping to the ground. :???:

Author:  CaveCricket48 [ Thu Mar 04, 2010 12:36 am ]
Post subject:  Re: Need help with AI

Assuming you know basic ini modding...

Attach this script:
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

to an actor. It'll only work on the actor that you attach the script to, though.

Author:  CCnewplayer [ Thu Mar 04, 2010 12:58 am ]
Post subject:  Re: Need help with AI

CaveCricket48 wrote:
Assuming you know basic ini modding...

Attach this script:
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

to an actor. It'll only work on the actor that you attach the script to, though.


But where i attach it?(im new XD)
anyway thanks for trying to help.

Author:  CaveCricket48 [ Thu Mar 04, 2010 1:18 am ]
Post subject:  Re: Need help with AI

You attach it to the actor that you want to stop jumping off ledges with "[tab]ScriptPath = actorfolder.rte/script.lua"

There is a tutorial here that you can read to learn modding.

Author:  CCnewplayer [ Thu Mar 04, 2010 1:39 am ]
Post subject:  THX

Im trying to do this now.thx

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/