ServantOfSin Posted July 20, 2021 Share Posted July 20, 2021 I'm changing the INI setting for the crosshair via script, but I can't find a clean way to force it to refresh. Moving the player will, but that's no bueno. Also, I can't figure a way to refresh FoV after changing the INI via script. Tween menu does it, bow zoom does not. No SKSE, or it'd be simple. Thanks in advance! Link to comment Share on other sites More sharing options...
IsharaMeradin Posted July 20, 2021 Share Posted July 20, 2021 Would a fade to black and back affect either of those? There is FadeOutGame but it says that it may not work properly and that ApplyCrossFade might be a better route. Worth a shot at least. Link to comment Share on other sites More sharing options...
ServantOfSin Posted July 20, 2021 Author Share Posted July 20, 2021 I'll give the crossfade a shot, thanks. Crosshair seems to update on cell change. CartMode didn't work, or any AV changes to force HUD update. FoV seems to only refresh when the game does a FoV change, which is how the tween menu accomplishes that little zoom I guess. Thought I could use the Eagle Eye zoom, but it doesn't work. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted July 20, 2021 Share Posted July 20, 2021 More thoughts... You could try popping open the inventory and then closing it. Just make sure to re-enable player controls after.OpenInventory <-- opens inventoryDisablePlayerControls <-- closes menu, use: Game.DisablePlayerControls(False, False, False, False, False, True) ; Exit menuEnablePlayerControls <-- re-enables menu access, use: Game.EnablePlayerControls(False, False, False, False, False, True) ; Reenable menu If you haven't tried it, you could see what happens when switching between first and third person modesForceFirstPersonForceThirdPerson Link to comment Share on other sites More sharing options...
ServantOfSin Posted July 25, 2021 Author Share Posted July 25, 2021 Thanks for all of the suggestions! I tried the obvious like DisablePlayerControls() -> EnablePlayerControls() and then weird things like forcing animation variables, redirecting camera targets, equipping/unequipping items, fades, imods, camera shakes, cartmode...Since DisablePlayerControls() didn't affect it, I didn't pursue it any further. As a last resort, I broke it into every individual setting and isolated the one that worked. Works flawlessly with no hiccup in control or display. I think doing this will force a HUD update in general, not 100% though. Well on my way to making XBox do things it never thought it could. Game.DisablePlayerControls(abLooking = true) Game.EnablePlayerControls(abLooking = true) Link to comment Share on other sites More sharing options...
ServantOfSin Posted July 25, 2021 Author Share Posted July 25, 2021 Spoke too soon! Just posting in case anyone ever comes across the same issue. ; It will sheathe empty hands or spells Game.DisablePlayerControls(abLooking = true) Game.EnablePlayerControls(abLooking = true) ;Only need this part to force a crosshair, possibly HUD refresh Game.EnablePlayerControls(abLooking = true) Link to comment Share on other sites More sharing options...
Recommended Posts