Jump to content

[LE] Scene refuses to start


Recommended Posts

So this is my first foray into scenes and they're either extremely frustrating by default or I'm an idiot. Not sure which at the moment. Here's the scenario leading up to the scene:

 

-Combat with NPC happens. NPC's weapon has an percentage chance to knock the player into bleedout on hit. Works fine.

-The weapon effect then starts a quest. The quest has a flag to stop combat in the start up stage. This all works based on my debug tracing and the sqv console command showing the quest is started. And the fact the player is no longer getting their face bashed in.

-The scene is set to start on quest begin. At the moment, it consists of one action, no conditions, and is just the NPC saying a one-liner while facing the player. This does not work.

 

Based on my debug tracing, the scene never fires. At all. I've determined this by putting debug.notification lines in the phase start and completion fragments. Neither one appears in testing.

 

The NPC is set as an alias in the quest, and the reference ID is correct so it can't be an issue with it not finding the actor. I've looked at a number of tutorials on scene creation over the last few hours and everything I've done is identical as far as phase/dialogue setup goes for the scenes. Anyone ran into similar issues before and know what might be going on?

Link to comment
Share on other sites

Ok, seems that I got it to work in a rather backwards way. I made a new AI package that stays close to the player and calls the scene on begin. I attached that package to the reference alias for the new quest and now it magically works.

 

It seems that calling it through script was correct, just had to go the roundabout way of calling it from an AI package rather than a magic effect, a quest stage, etc.

Link to comment
Share on other sites

I had done that in my troubleshooting initially, because the same thought crossed my mind. At one point, I even put in a five second wait prior to calling the scene just to give time for the stopcombatalarm line to take full effect. I'm all good now though and it's working as it should.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...