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.
enabling/disabling triggers sounds goofy anyways. I'm not sure why.
I would just have the trigger not trigger until the correct quest stage. That sounds like the effect you're going for anyways. You can even use the DefaultSetStageOnEnter script for that. iirc it has a prereq stage in it, and a stage to set it to when it's triggered. You can also set exactly what actors will trigger it(possibly including player). If nothing else, you can open up that script and copy the relevant components to your own. If it doesn't have exactly what you're looking for look for any other trigger with 'default' and 'stage' in the name, and look through it's script. A good practice to see what's available anyways.