Talk:RegisterForHitEvent - ScriptObject

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Shouldn't akAggressorFilter be a form rather than a scriptObject ?Sclerocephalus (talk) 2018-03-14T10:24:49 (EDT)

Another problem:

This is line 6 of POISC12_RobotManagerScript:

Self.RegisterForHitEvent (PlayerFaction)

It fails with the following error:

[03/13/2018 - 12:37:26PM] error: (0001C21C): is not a valid OnHit target. stack: [ (0023AED4)].POISC12_RobotManagerScript.RegisterForHitEvent() - "<native>" Line ? [ (0023AED4)].POISC12_RobotManagerScript.OnInit() - "g:\_F4\Art\Raw\Scripts\POISC12_RobotManagerScript.psc" Line 6

According to the wiki page, akAggressorFilter is the only form that actually works with a faction passed in. Now, since this is the first one of the three forms in the list of arguments, I would expect that papyrus passes the faction to that form without saying if the script doesn't specify the argument explicitely.

Apaprently, it doesn't though. Otherwise, there should be no error thrown.

This makes me wonder whether the wiki page lists the arguments of this function in the correct order. Sclerocephalus (talk) 2018-03-14T10:49:21 (EDT)