b3w4r3 Posted October 10, 2023 Share Posted October 10, 2023 is there a function for Fallout 4 like GetFirstRef/GetNextRef? This was a script extender function for the older games that allowed you to scan the cells around the player to find and execute functions on returned objects. I want find dead actors and have them play a shader effect to make them easier to find in the dark/clutter. Link to comment Share on other sites More sharing options...
DieFeM Posted October 10, 2023 Share Posted October 10, 2023 As far as I know there's none of those functions available for papyrus, but PickNextRef, PickLastRef and PickNextActor are available in the console tho, you can try using Console Utils if any of those serve your purpose.Also there are many find functions available for papyrus, maybe you could use one them for your purpose. https://www.creationkit.com/fallout4/index.php?title=FindAllReferencesWithKeyword_-_ObjectReference Link to comment Share on other sites More sharing options...
hereami Posted October 11, 2023 Share Posted October 11, 2023 (edited) Why not use a Cloak or periodic AoE strike or Quest Alias fill? Find functions don't seem be very useful for said task. Edited October 11, 2023 by hereami Link to comment Share on other sites More sharing options...
b3w4r3 Posted October 11, 2023 Author Share Posted October 11, 2023 Thanks both of you. I.m trying the AOE as I was able to find an example on how to format everything. Got the script to compile but still have work to do getting it in game. I could do this so easily in the older games but this Papyrus is so different and the documentation on the CKWiki doesn't help me much. Anyway this is what I have for the start of the magic effect script. Hopefully I'll get some time this weekend to test it out. Scriptname b3SpellScript Extends activemagiceffect EffectShader Property b3DeadShader Auto Actor akEffectTarget Event OnEffectStart(Actor akTarget, Actor akCaster) akEffectTarget = akTarget if akEffectTarget.isdead() b3DeadShader.play (akEffectTarget, 60.0) endif EndEvent Link to comment Share on other sites More sharing options...
Recommended Posts