Jump to content

GetActorRef is not a function or does not exist


Recommended Posts

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "Fragments:Quests:QF__04427D19"...
GetActorRef is not a function or does not exist
variable REPlayerEnemy is undefined
void is not a known user-defined script type
No output generated for Fragments:Quests:QF__04427D19, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on Fragments:Quests:QF__04427D19
; Mister Gutsy becomes hostile
Bot1.GetActorRef().AddToFaction(REPlayerEnemy)


I have the alias in the quest pointing to it and a script property pointing to the character as an alias variable type. But it wont compile. What is wrong with this? I have copied the settings from a random encounter robot quest and it has the same exact setup.

Link to comment
Share on other sites

Ok. so if you have Actor property, why don't you just call addToFaction directly on it, without GetActorRef? Whole point of GetActorRef is to get actor from reference alias and there is no need to use that if you already have filled Actor property.

Edited by shavkacagarikia
Link to comment
Share on other sites

  • Recently Browsing   0 members

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