Jump to content

[LE] How to command a follower to sneak?


pxd2050

Recommended Posts

How to command a follower to sneak?
When I ordered, follower blinked and didn't sneak. Whether something interrupted the stalker's sneaking.

What should I do?

Did idle interrupt the stealth? How to terminate an idle?

function DogStyle(Actor _target)
	if !(_target.IsSneaking())
		_target.StartSneaking()
	endif
endFunction
Edited by pxd2050
Link to comment
Share on other sites

Check to see if the actor is running any AI packages that could interfere. For example, if the follower has an AI package to handle sandboxing when not moving that package could interrupt sneak by sending the actor to go do something.

Thank you very much. This is the correct answer to the question.
It seems that we have to create a sneak package to replace the original package and use the evaluatepackage () function?
Edited by pxd2050
Link to comment
Share on other sites

Possibly. Or add a condition to the offending package(s) that the actor not be sneaking thus preventing it from running when the actor is sneaking.

You're a genius. I'm worried about how to build a sneak package (I don't know anything about package). But it's easy for me to add a condition.

Link to comment
Share on other sites

you can set inside the package the flag always sneak. No condition needed. I would use two packages on the alias. The first with his normal behavior, the second with the sneak flag set. Make a global variable and set it as condition to run the preferred package. Always use EvaluatePackage() in your script that alters the GlobalVariable.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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