zalhozixixer Posted November 16, 2020 Share Posted November 16, 2020 So long story short, I'm trying to run a script that makes an NPC essential. But every time I try to compile it, it fails and gives me the following error: Starting 1 compile threads for 1 files... Compiling "TIF__0500AA1A"... C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0500AA1A.psc(12,10): SetEssential is not a function or does not exist No output generated for TIF__0500AA1A, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on TIF__0500AA1A The script I'm trying to run is "akspeaker.SetEssential()". And while it should in theory work, it just keeps telling me its not a fuction or does not exist.Other scripts like ".SetFactionRank" do work like normal.I have the feeling that the cause might have something to do with MO2, which I'm running CK through. But any solutions I found on the internet related to that have so far failed. I'm kind of at my wits end here. If anyone could help me out, that would be great. Link to comment Share on other sites More sharing options...
Ghaunadaur Posted November 16, 2020 Share Posted November 16, 2020 SetEssential() needs to run on the actor base. So this should work: akspeaker.GetActorBase().SetEssential() If it's a leveled actor, use GetLeveledActorBase() instead. Link to comment Share on other sites More sharing options...
zalhozixixer Posted November 16, 2020 Author Share Posted November 16, 2020 Man do I feel silly digging so far deep for an answer when the solution was so simple. Thanks a lot! Link to comment Share on other sites More sharing options...
Ghaunadaur Posted November 16, 2020 Share Posted November 16, 2020 No problem. Link to comment Share on other sites More sharing options...
Recommended Posts