DrPandachaun Posted July 18, 2019 Share Posted July 18, 2019 (edited) Working on a mod that incorporates the knights of the nine armor and weapons in a new and interesting way. I need to create a script that opens a locked door when a specific shout hits it. For example the shouts I had in mind were Unrelenting Force, Fire breath and Dragonrend. And also, I'd like to know how to make events happen once the player is within a certain radius, because I can't find anything in the list of Papyrus Functions. I'm new to the whole Creation Kit thing and Scripting is one of those things I can't seem to wrap my head around, any help would be greatly appreciated. Edited July 18, 2019 by DrPandachaun Link to comment Share on other sites More sharing options...
TobiaszPL Posted July 19, 2019 Share Posted July 19, 2019 (edited) I need to create a script that opens a locked door when a specific shout hits it. For example the shouts I had in mind were Unrelenting Force, Fire breath and Dragonrend. Event OnHit()Here: https://www.creationkit.com/index.php?title=OnHit_-_ObjectReference Spell Property QSpell Auto Actor Property QPlayer Auto Event OnHit( ObjectReference QRef, Form QSrc, Projectile Proj, bool A, bool A, bool B, bool C ) If( QRef == QPlayer ) If( QSrc == QSpell ) ; Player hit this with QSpell ; do stuff here EndIf EndIf EndEvent im not sure how it will work on Static objects, not sure it will even work on static you can create MovableStatic... they work for sure but idk how OnHit will work with Static Static :tongue:By door you mean something that block way that you can push with Fus Ro Dah or normal door that you can teleport with? And also, I'd like to know how to make events happen once the player is within a certain radius, because I can't find anything in the list of Papyrus Functions. Scriptname QLG_Script_TriggerInRange extends ObjectReference Actor Property QPlayer Auto { Player Ref. } Event OnTriggerEnter( ObjectReference QRef ) If( QRef == QPlayer ) ; Do stuff here Else ; Do stuff here ( activated but by follower / NPC / Enemy etc. ) EndIf EndEvent Video tutorial: ( SKIP TO 5:20 - Yes long useless video xD its not my bad, CK just load like forever :c )https://www.youtube.com/watch?v=R8UO04Iq7NQ Edited July 19, 2019 by TobiaszPL Link to comment Share on other sites More sharing options...
DrPandachaun Posted July 22, 2019 Author Share Posted July 22, 2019 Thanks for the reply :smile: "By door you mean something that block way that you can push with Fus Ro Dah or normal door that you can teleport with?" No, I mean like an animated nordic dungeon door one that locks with a key or something.I haven't tested what you've posted yet, but thank you for your help regardless. I'll let you know if it works. Link to comment Share on other sites More sharing options...
Recommended Posts