Jump to content

Enable is not a function....


MesaSolar

Recommended Posts

First time this has happened to me. I'm trying to enable an alias ref property (a DefaultActivateSelfTrigger linked to some mirelurks) and I'm getting an error message when I try to compile. It's like the base script has forgotten how to enable a property. Weird.

 

SetObjectiveCompleted(30)
SetObjectiveDisplayed(40)
aMirelurkTrigger01.Enable()

any suggestions?

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "TLG:Fragments:Quests:QF_TLG_Quest02_01007D70_1"...
C:\Users\pmcof\AppData\Local\Temp\PapyrusTemp\TLG\Fragments\Quests\QF_TLG_Quest02_01007D70_1.psc(34,19): Enable is not a function or does not exist
No output generated for TLG:Fragments:Quests:QF_TLG_Quest02_01007D70_1, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TLG:Fragments:Quests:QF_TLG_Quest02_01007D70_1
Link to comment
Share on other sites

aMirelurkTrigger01 is a ReferenceAlias or Alias?

 

ReferenceAlias script derives from Alias script, which derives from ScriptObject.

Enable() however is a method on ObjectReference script.

 

If it's ReferenceAlias, you can try:

aMirelurkTrigger01.GetRef().Enable()

 

Or this:

aMirelurkTrigger01.TryToEnable()

Link to comment
Share on other sites

  • Recently Browsing   0 members

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