kingtitan Posted March 13, 2013 Share Posted March 13, 2013 Hello again all. I have a small trigger zone issue that I need to script out, and would be very happy if someone could at minimum point me in the right direction. I am brand new to trigger zones (sadly enough), so any understanding as to how they function would be helpful. Anyway here is what I am trying to do. I have an actor that, on the change of a global variable from 0 to 1, travels to a specific reference. What I would like to do is to add a trigger zone in the direct path of the actor so that as soon as the actor walks through the zone, the global variable again changes which in turn would remove the actor's current package and add another that would effectively "reset" the actor by giving them another travel package to their original standing area. Now, I know this sounds complicated, but I have done everything except to get the trigger zone to work. Once I can understand the trigger then everything else will fall into place! Any and all help is appreciated! Link to comment Share on other sites More sharing options...
Hickory Posted March 13, 2013 Share Posted March 13, 2013 Duplicate one of the CS trigger meshes (TrigZoneACTOR01 or TrigZoneACTOR02, under Activators) and place it in the path (scaled as necessary) of your actor. Read about OnTrigger here, if necessary. The rest, as you say, will fall into place. Link to comment Share on other sites More sharing options...
kingtitan Posted March 14, 2013 Author Share Posted March 14, 2013 I may have posted the topic prematurely (sorry), but I figured out a method that would work, or at least how the onTrigger block works. I actually ended up using the onTriggerActor block and then specified the actor. It took me a bit to realize that I needed to write a custom script for the trigger zone (I didn't really look hard into what the vanilla script actually did until after I posted). On a side note, do I need to give an NPC a refID in order to be able to reference them in the script? Probably a rhetorical question, I apologize beforehand! Link to comment Share on other sites More sharing options...
Hickory Posted March 14, 2013 Share Posted March 14, 2013 kingtitan, on 14 Mar 2013 - 02:37, said:On a side note, do I need to give an NPC a refID in order to be able to reference them in the script?Where you need to interact (via script) with an actor, they need a RefID, yes. Link to comment Share on other sites More sharing options...
Recommended Posts