Jump to content

Scripted Player Character Movement?


vasiD

Recommended Posts

So, I know it has to be possible as Bethesda did it in the intro (when you walk to the headstone), however I have no clue where to look for that code. Does anyone know either where I can find and analyze that intro code at Helgen or perhaps more to the point how to script controled player character movement?

I have an interesting prison mod in mind that has the character taken from their cell to work in region specific locations and I'd rather not just warp them around to really soak in the atmosphere of being a prisoner.

Edited by vasiD
Link to comment
Share on other sites

So, I know it has to be possible as Bethesda did it in the intro (when you walk to the headstone), however I have no clue where to look for that code. Does anyone know either where I can find and analyze that intro code at Helgen or perhaps more to the point how to script controled player character movement?

 

I have an interesting prison mod in mind that has the character taken from their cell to work in region specific locations and I'd rather not just warp them around to really soak in the atmosphere of being a prisoner.

 

 

Scripted movement can be done via the use of the SetPlayerAIDriven which will allow AI packages to be run on the player.

 

EDIT: You could instead of using packages use PathToReference, but either way the player must be set as AI driven.

Edited by BotOwned
Link to comment
Share on other sites

 

So, I know it has to be possible as Bethesda did it in the intro (when you walk to the headstone), however I have no clue where to look for that code. Does anyone know either where I can find and analyze that intro code at Helgen or perhaps more to the point how to script controled player character movement?

 

I have an interesting prison mod in mind that has the character taken from their cell to work in region specific locations and I'd rather not just warp them around to really soak in the atmosphere of being a prisoner.

 

 

Scripted movement can be done via the use of the SetPlayerAIDriven which will allow AI packages to be run on the player.

 

EDIT: You could instead of using packages use PathToReference, but either way the player must be set as AI driven.

 

Thank you very much, this is exactly what I'm looking for!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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