Jump to content

Need help with AI


Icewedge

Recommended Posts

I am making a quest where you to have to protect a weak actor.

 

I want to make the actor follow the player but to behave timidly in combat. I have it scripted so that nothing will attack the follower and the follower will not engage in combat, but the follower keeps getting in the way whenever I am fighting.

 

Is their any way for an actor to be scripted or otherwise controlled to hide behind the player in combat?

Link to comment
Share on other sites

low confidence rating can help. Having scripts on the actor to make any attackers switch to targeting the player can work too.

 

begin gamemode
if self.isincombat == 1 && getstage <quest> == <stage>
set target to self.getcombattarget
if target != player && target.isinfaction playerfaction != 1
  target.moddisposition self 10
  self.forcetakecover target 20
  target.startcombat player
  self.stopcombat
  enfit
endif
end

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...