Jump to content

[LE] Force Crosshair and FoV Refresh Script


Recommended Posts

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

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 thoughts...

 

You could try popping open the inventory and then closing it. Just make sure to re-enable player controls after.

OpenInventory <-- opens inventory

DisablePlayerControls <-- closes menu, use: Game.DisablePlayerControls(False, False, False, False, False, True) ; Exit menu

EnablePlayerControls <-- 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 modes

ForceFirstPerson

ForceThirdPerson

Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...