Jump to content

Permanent/persistent shader script - how to?


Zeus154

Recommended Posts

Hello. I appreciate if I can get some help with achieving a small script that will apply some permanent effect shader to the player as well as NPCs. I've been spending the last while trying to create a shader script/spell that does this and well, it's come with some mixed as well as unoptimal results.

 

To preface, I'm a novice when it comes to the GECK, so I may need a bit of handholding to understand some of this stuff. I've tried a couple of scripts (such as trying OnLoad and ScriptEffectStart/Update) as well as spell options such as setting the "FX Persist" flag on when creating a base effect, though it doesn't really seem to work on my end. I've tried both object and effect scripts and I think the object script might be the best course of action, since I can control what NPCs can use the shader. In my experience, the script below works, though from what I've researched, it will call that function every frame which will eventually tank performance and crash the game.

scn aaaShaderScript
Begin Gamemode
   PMS aaaMyShaderEffect
END

It works, but it can be better obviously. I don't necessarily know how to create an effective shader script that will apply and reapply said shader.

 

So can anyone help me with designing such a script?

 

Thanks for reading.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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