Guest Posted August 14, 2017 Posted August 14, 2017 I wasn't sure where to post this but here seems like a good place. I want to get started with skyrim scripting and even wrote a basic script ready to test, however i don't know the general practices of skyrim scripting. I want to make my script start up as soon as the game start and i can't seem to get it to start. What is the general way that most scripts trigger on start up?
Guest Posted August 14, 2017 Posted August 14, 2017 event OnInt() ; "Do whatever you like, but it will be done only once" endEvent But if you want it to do stuff also on game reload, then you have to call your script by the event OnGameLoad() that has to be inside a ReferenceAlias that is filled with the player.
Guest Posted August 14, 2017 Posted August 14, 2017 Got it, i ended up using quest alias. One last question Is there a way to check if the player is moving/jumping/running, can't seem to find anything along these lines in the papyrus code
Guest Posted August 14, 2017 Posted August 14, 2017 No, there is no easy way to understand if an actor is walking, jogging, or running.
Guest Posted August 14, 2017 Posted August 14, 2017 Any alternatives or work arounds? Maybe using animations is a viable method?
Andy14 Posted August 15, 2017 Posted August 15, 2017 OnPlayerLoadGame () is a third possibility. Should be used with OnInit (). OnPlayerLoadGame is in ActorScript. Also: IsSneaking, IsSprinting, IsRunning - etc. https://www.creationkit.com/index.php?title=Actor_Script
Recommended Posts
Archived
This topic is now archived and is closed to further replies.