Attackpony Posted June 27, 2017 Share Posted June 27, 2017 Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © 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 existvariable REPlayerEnemy is undefinedvoid is not a known user-defined script typeNo 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 hostileBot1.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 More sharing options...
shavkacagarikia Posted June 27, 2017 Share Posted June 27, 2017 which type is Bot1? as GetActorRef() is Reference alias function, you can call it only on that type of properties. Link to comment Share on other sites More sharing options...
Attackpony Posted June 27, 2017 Author Share Posted June 27, 2017 http://i.imgur.com/I3vK9n4.pngAt first I tried the Alias reference, then tried actor, both failed. I do not see why this is, I copied what the random encounter robot does and it has the same aliases and fragments. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 27, 2017 Share Posted June 27, 2017 what I see in papyrus fragment there is commented code. If it was commented out initially then it does nothing. Link to comment Share on other sites More sharing options...
Attackpony Posted June 27, 2017 Author Share Posted June 27, 2017 I commented the line out so the error message does not keep showing up when I take a screenshot. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 27, 2017 Share Posted June 27, 2017 (edited) 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 June 27, 2017 by shavkacagarikia Link to comment Share on other sites More sharing options...
Attackpony Posted June 27, 2017 Author Share Posted June 27, 2017 I fixed it by using a property of the reference type.Where can I read what functions can be directly used on each type? Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 27, 2017 Share Posted June 27, 2017 https://www.creationkit.com/fallout4/index.php?title=Category:Script_Objects Link to comment Share on other sites More sharing options...
Recommended Posts