» Tue Jun 19, 2012 7:09 am
I have a question about enabling a trigger primitive. Basically, I worked for 2 or 3 hours trying to get a trigger to start disabled, enable at a certain quest stage and trigger a scene between my 2 characters. The first method I tried was creating the prim, giving it an alias and enabling it in the stage prior to my scene playing. I know the code was correct because it was the exact same format as a dozen others I had already made for other objects that enable at certain stages.
Alias_MyTriggerName.GetReference().Enable()
Even though I created the Quest Alias it failed to enable my trigger. So then, I thought I’d just give the trigger an editor ID and set a quest property for it and enable it that way. Didn’t work either, lol. Finally, the way I had to set it up was placing an Xmarker in the cell, set it to initially disabled, and then set the trigger’s enable parent linked to the Xmarker. I then had to define an Object Reference property on the Xmarker, and enable it through my quest stage. That eventually worked, but I don’t understand why the alias reference didn’t work. Is there something special about triggers that they cannot be set up via an alias?
Like I say, unless I had a complete brain fart, I had it set up correctly the first time. I already have at least a dozen other alias’ that I’m enabling and disabling other stuff so I believe it should have worked.