[Help] Questions about SKSE

Post » Sun Nov 27, 2016 1:45 am

Hello everyone! I have some easy and complicated questions about SKSE [Plugins]:


First of all, is this the right place to get help with SKSE Plugins?


I read a few examples and I am able to get a function, that works in papyrus, but now I can't get any progress...



[When this is the right place, then:]


1. How to get Callbacks/Hooks/Events linked to a function in the plugin [C++]?


-Just a plaine example would be nice. Nothing more, nothing less.



2. Is there an "onTick"-Updateevent in SKSE/Papyrus?


-Maybe linked to my first question with an example. Papyrus or C++.


-And no timer, please.



3. Is there a way to create a completly empty/stupid NPC and to change his animation at will?


-What I mean is a NPC, who is not doing anything, even if you hit him.


-I should be able to control him with Scripts/Plugins (like "Set Position" or "Set Animation").



4. Is there an event, which is called, when an animations starts to play?


-This should give me the Type/Kind/Obj of the animation.




There are more questions, but I am still unsure, if this is the right place for them.


Also I am pretty new in Skyrim-Modding myself. I just wanne do some experiments with the Engine.


Thank you for your help!

User avatar
NEGRO
 
Posts: 3398
Joined: Sat Sep 01, 2007 12:14 am

Post » Sat Nov 26, 2016 7:29 pm

I'm actually looking for the answer to number 1 as well. Someone pointed me to https://github.com/xanderdunn/skaar/blob/b20ff15c9bf9a5cdcfecdfd5bf9b70db5e7e56ab/skaar_skse_plugin/skse/PapyrusEvents.cpp#L180 as an example of how SKSE Input Event Handler can receive input from the windows APA. If you figure it out would you let me know? The answer to number 3 you might wanted to check out forces idles: http://www.nexusmods.com/skyrim/mods/11811/?To answer number two I don't know about OnTick but there is definitely https://www.creationkit.com/index.php?title=RegisterForSingleUpdate_-_Form, but that uses a time. It might be better to use RegisterForSingleUpdate, or RegisterForSingleUpdateGametime. I'm not sure if SSE made some of the changes from skyrim as FO 4, but if so these functions may be deprecated. https://www.creationkit.com/index.php?title=Animation_Events

User avatar
Mandy Muir
 
Posts: 3307
Joined: Wed Jan 24, 2007 4:38 pm


Return to V - Skyrim