Triggers and NPCs in Scripts

Post » Sun Aug 08, 2010 8:08 am

Hi all,

I'm trying to achieve what feels like the impossible at the moment.

Basically;

I've got a script which will randomly enable an NPC thus 'spawning' them.
The npc has an AI package which forces them to 'charge' towards an xmarker.
What I want is for the npc to hit a trigger, check if a variable from another script is true and disable (i.e. 'magic away') the NPC.

Given example;

Bob's our NPC; he spawns 7 seconds in, and charges the xmarker. He hits the trigger box, but the 'kill' variable is still 0. The player activates a key which sets the 'kill' variable to 1. Bob then magically disappears (whilst he's still inside the trigger).

I've poured my brain into GECK for hours trying to work out how to do this without much luck. Any theories greatly appreciated.

Kris
User avatar
Matt Gammond
 
Posts: 3410
Joined: Mon Jul 02, 2007 2:38 pm

Return to Fallout: New Vegas