Jump to content

Recommended Posts

Posted

I am playing around with the West Tek Tactical Optics - Night Vision Thermal Vision Goggles and More mod by fadingsignalhttps://www.nexusmods.com/fallout4/mods/12220

I have successfully implemented logic for the thermal effect where if an NPC is hostile to the player they are highlighted in a red overlay, and if they are friendly to the player they are highlighted in a green overlay. Cool! What I'm now struggling to figure out is how to get that evaluation of friend vs foe to happen dynamically. So if a friendly NPC turns hostile after being shot by the player for example, their highlighting changes from green to red automatically. Right now the only way I can get the thermal goggles to re-evaluate a friend vs foe is by unequipping them and re-equipping them.

Anyone have any idea on how to make that happen? Despite my minor accomplishment above, I have no idea how to do any scripting via the Creation Kit or advanced modding.

Thanks in advance to anyone that can lend a hand or idea to accomplish this. Of course will share the results with fadingsignal so they can post an update if I can get this working.

Posted

Good news to anyone reading! I actually figured this out! I found this webpage which explained how SPELs vs MGEFs are applied and evaluated: https://ck.uesp.net/w/index.php?title=Magic_Effect&mobileaction=toggle_view_desktop

Long story short, just apply the same conditional logic that's applied to any "Friend" and "Hostile" SPEL records to their corresponding MGEF records, and voila! Dynamic Friend vs Enemy highlighting now works.

  • Recently Browsing   0 members

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