cdo947214 Posted November 21, 2018 Share Posted November 21, 2018 I have an npc in my mod that needs to be alive at earlier points in the quest, but when the player is later tasked with speaking with him the third time, we are supposed to find him dead. I created a alias and property for him. First I tried Alias.GetReference().kill(), then I tried Alias.GetReference().disable(). Neither of them compiled. Thanks. Link to comment Share on other sites More sharing options...
Pokepunch Posted November 21, 2018 Share Posted November 21, 2018 What error did you get? Link to comment Share on other sites More sharing options...
cdo947214 Posted November 21, 2018 Author Share Posted November 21, 2018 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_aaaRSQMissingPersons_010450A0"... C:\Users\cdo14\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_aaaRSQMissingPersons_010450A0.psc(104,26): kill is not a function or does not exist No output generated for Fragments:Quests:QF_aaaRSQMissingPersons_010450A0, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on Fragments:Quests:QF_aaaRSQMissingPersons_010450A0 Link to comment Share on other sites More sharing options...
Pokepunch Posted November 21, 2018 Share Posted November 21, 2018 Try this: (Alias.GetReference() as Actor).Kill() As an ObjectReference can be any type of object and not just an Actor you might need to cast the reference as an Actor. Link to comment Share on other sites More sharing options...
cdo947214 Posted November 21, 2018 Author Share Posted November 21, 2018 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_aaaRSQMissingPersons_010450A0"... C:\Users\cdo14\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_aaaRSQMissingPersons_010450A0.psc(104,34): required (...)+ loop did not match anything at input ')' No output generated for Fragments:Quests:QF_aaaRSQMissingPersons_010450A0, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on Fragments:Quests:QF_aaaRSQMissingPersons_010450A0 Link to comment Share on other sites More sharing options...
cdo947214 Posted November 21, 2018 Author Share Posted November 21, 2018 Nevermind, it worked. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts