Jump to content

Event for first/third perspective switch


StupidWeasel

Recommended Posts

Hello there everyone,

I'd like to start an effectshader when player character is in third person & stop it when they're in first person, but I'm dreadfully new to both the Creation Kit and Papyrus and can't figure out the relevant event.

I know I am able to check the player's current perspective with PlayerRef.GetAnimationVariableBool("IsFirstPerson"). Looking through the Papyrus Events - I don't see anything obvious, but I likely can't see the wood for all the trees. Is there a specific event that'd be triggered when the player switches perspective (either directly, or forced by a cutscene).

Thank you in advance for any help :D

Link to comment
Share on other sites

Thank you for the reply IsharaMeradin.

 

For what I'm wanting to do (specifically, add a visual effect to the player when their in third person - nerf it in first) I'm assuming I'd need to start/stop the EffectShader within the the magic effect discussed in step 2? I'll give that a try now and come beg more help if things don't go as planned :wink:

Link to comment
Share on other sites

Sort of but not really.

 

It would be within that step, yes. But you would need to start the EffectShader via script when the effect finishes and stop the EffectShader when the effect starts. This is because of the condition on the ability that triggers the effect. The condition requires the player to be in 1st person. I suppose you might be able to flip the value from == 1 to == 0 on the condition IsPC1stPerson on the ability (step 3) so that it triggers when going into 3rd person rather than into 1st person. But I have not tested that.

 

If flipping the value on the condition works, then you might be able to put your EffectShader within the effect itself rather than scripting it. I don't know if that is possible as I have not dealt with EffectShaders at all.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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