jedp15 Posted May 4, 2020 Share Posted May 4, 2020 So I'm creating some guard patrol packages that take them through some city gates (which have pull-chain activators) and I guess I realize I need a script to have them use the chain activator once they pass by it (or else they'll just bash their head against the gate) so they can open the gates to get through. Also it would be even better to have them close the gate behind them on their way back.Any script help is greatly appreciated. Link to comment Share on other sites More sharing options...
dylbill Posted May 4, 2020 Share Posted May 4, 2020 What you want is activate: https://www.creationkit.com/index.php?title=Activate_-_ObjectReference Short script example: ObjectReference Property PullChain Auto Actor Property Guard Auto PullChain.Activate(Guard) ;guard activates the Pullchain opening the gateYou'd need to specify when this happens though. Maybe somewhere in the package script fragment. Link to comment Share on other sites More sharing options...
jedp15 Posted May 8, 2020 Author Share Posted May 8, 2020 Thanks for the reply, guess I'll have to watch some scripting tutorials :) Link to comment Share on other sites More sharing options...
dylbill Posted May 8, 2020 Share Posted May 8, 2020 No problem. How I would do it, is make a package where the guard travels to the gate, or pull chain. Then use the On End papyrus fragment in the package to have them pull the chain. That then starts a new package where they travel to their final destination. Link to comment Share on other sites More sharing options...
Austvinden Posted May 8, 2020 Share Posted May 8, 2020 Been a while since I've scripted anything, but if I remember correctly, you can actually use the quest/scene function to open doors. If you want the NPC to do it regularly I think you could do so by creating an AI Package, though I'm not sure. Link to comment Share on other sites More sharing options...
Recommended Posts