Disclaimer: I haven't created anything with Bethesda modding tools since the previous generation of Elder Scrolls/Fallout tools, so I have some general familiarity but I'm still getting up to speed on how the more recent Skyrim/Fallout 4 tools function. I've created a very simple mod: an ability, conditional on GetInIronSights, that forces first person when the effect starts and third person when it ends. It does what I intended, but the response time is inconsistent. It will sometimes swap to first person as soon as the gun is up, but most often there's a brief period where the character is aiming (or has stopped) before the perspective switch actually happens. It's a very short delay, but if I was to try and use this in combat, I think it would quickly become frustrating.
Scriptname FPATScript extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
Game.ForceFirstPerson()
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
Game.ForceThirdPerson()
EndEventI'm looking for something that responds faster. Is there another event/condition I could be using to watch for aiming, or a better method for setting up a script like this? Ideally, I would like the aim keypress and release to trigger the perspective switch, but I don't think that's currently possible. Please correct me if I'm wrong. Thank you for your help, forum people.