Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm coding a mod for Skyrim with Papyrus and the Creation Kit. I can't seem to get an Actor to move from point A to point B. I know there's a function to teleport an actor, but how can I make them walk or run using Papyrus?

share|improve this question
8  
Make sure you uncheck "arrow in knee" - it doesn't stop them, but it does slow them down ;) –  Tim Holt Apr 30 '13 at 2:16
1  

1 Answer 1

If you just want the actor to wander around, give him a sandbox package such as DefaultSandboxHomeowner. This will cause the actor to mill about his or her home. If you have other packages assigned to the actor, you generally will want this sandbox package to be lower than them in the package stack so that it has the least priority.

If you want the actor instead to walk between specific points, give him or her a new package based on the Patrol template or perhaps the Travel one instead. The former will require you associate a path with the package, so you'll want to have that set up first. The latter only requires a location but does not have facility for repetition, so the actor will move to the specified location and then stop.

You'd have to set up additional behavior to have the actor move back (you could probably do this in a quick-and-dirty fashion by giving the actor many travel packages, with schedule limitations that account for the time it should take the actor to make the trips, but at this point a patrol package would be cleaner... unless perhaps you need the actor to move across cells).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.