- Status Fix Pending
- Task Type Bug Report
- Category Papyrus
- Operating System All
- Severity Low
- Priority Medium
- Reported Version Fallout 4: Vanilla
- Due in Version Undecided
FS#22208 - Assaultron mod scripts - has no 3d and so cannot have a visual effect applied to it
[03/23/2017 - 01:47:04PM] error: (001EAD96): has no 3d and so cannot have a visual effect applied to it.
[ (0023F49B)].VisualEffect.play() - "<native>" Line ? [Active effect 2 on (001EAD96)].AssaultronHeadModStealthScript.alive.OnEffectStart() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\AssaultronHeadModStealthScript.psc" Line 83
This happens with all assaultron mod scripts: AssaultronHeadModScript, AssaultronHeadModStealthScript, AssaultronShockHandScript, DLC01:AssaultronHeadModScriptCB and DLC01:AssaultronHeadModShield.
Apparently, the OnEffectStart event may fire before OnLoad, so there should be a 3D check (but there isn’t). Interestingly, some of the scripts once had that check, but it has been commented out:
; while akCaster.Is3dLoaded() == false ; debug.trace("Ass head waiting for 3d") ; utility.wait(0.05) ; endWhile
EDIT: All scripts are also missing a sanity check for akCaster in the OnEffectFinish event (note that this may not always help to avoid the error because the engine appears to clean up all magic effects quite aggressively, but it also won’t do any harm).