Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted (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 by hereami
Posted

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

 

  • Recently Browsing   0 members

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