efftee5 Posted July 30, 2017 Share Posted July 30, 2017 So I'm new to the geck in Fallout New Vegas and I have been following the tutorials made by Seddon on youtube, most of you probably know them even though not all of them are up to date.I'm having an issue with something, I know it's possible because it happens in-game and I've seen it in mods as well, so it's scriptable, I just can't find any of these scripts in the geck.Basically in my quest mod, I want an NPC to die as I enter a trigger, but the player is not the one who killed that NPC, he is scripted to die as the player enters the trigger.It sounds so simple, that's why I'm so frustrated that I can't get it to work.Here's the script that doesn't work: scn johndeathscript1 ; this is the name of the script, John is the name of the NPC begin ontriggerenter player ; you all know what this means if 0FCQuest.getstage >=20 ; this is the problem, I think, "0FCQuest" is the name of my quest, and I want the NPC to die during and after stage 20 JohnRef.GetDead ; I'm not sure this is a huge problem, though I tried both "GetDead" and "KillActor", they both work, it's really endif the above line that is a problem ("JohnRef" is the reference ID of the NPC) end Please help, any support is welcome. Link to comment Share on other sites More sharing options...
Ladez Posted July 30, 2017 Share Posted July 30, 2017 GetStage is not a reference function so you cannot use reference syntax. You need to pass the quest as an argument instead: if (GetStage 0FCQuest >= 20) The GetDead function only checks whether an actor is dead or not, so I seriously doubt it worked in the manner you describe. Use the Kill function if you want to kill someone. Link to comment Share on other sites More sharing options...
efftee5 Posted July 30, 2017 Author Share Posted July 30, 2017 Thanks very much! Link to comment Share on other sites More sharing options...
Recommended Posts