Jump to content

Photo

[solved] Having trouble with RunAwayFromNoInterrupt()


4 replies to this topic

#1 argent77

argent77
  • Modders
  • 823 posts
  • Gender:Male

Posted 05 August 2018 - 02:00 AM

I have trouble executing a cutscene in a safe manner. It includes the script action RunAwayFromNoInterrupt() to make a (ex-)party member walk away from the protagonist for a few seconds, which seems to have a dangerous side effect. If the fleeing character happens to be near a transition (door, gate, etc.) he uses it and the cutscene comes to a halt without having the option to terminate it. In EE games you can't even quit the game without the help of the task manager.

Is there a way to simulate the "run away from character" action without the danger of using a transition?
 


Edited by argent77, 05 August 2018 - 03:51 AM.


#2 K4thos

K4thos
  • Modders
  • 1195 posts
  • Gender:Male

Posted 05 August 2018 - 03:13 AM

354 RunAwayFromNoInterruptNoLeaveArea(O:Creature*,I:Time*)

It's unique to EE games though.



#3 argent77

argent77
  • Modders
  • 823 posts
  • Gender:Male

Posted 05 August 2018 - 03:50 AM

Thank you. Unfortunately, the cutscene is available for both classic and EE games, so I could only fix the EE part.

 

After a bit of testing I was able to find another work-around by rearranging the script actions. Apparently party members don't use transitions even if the transition would allow single party members to use it. Since the target character was also leaving the party during the cutscene, it worked by processing the LeaveParty() action after the run-away part in my case.



#4 Ardanis

Ardanis

    A very GAR character

  • Modders
  • 2610 posts
  • Gender:Male
  • Location:Saint-Petersburg, Russia

Posted 05 August 2018 - 04:35 AM

If the fleeing character happens to be near a transition (door, gate, etc.) he uses it and the cutscene comes to a halt without having the option to terminate it

 

I assume the CutsceneID() was that party member? I developed a habit of running all cutscenes by player1 or a dedicated spy actor to avoid potential troubles that may befall the director.


Retired from modding.


#5 argent77

argent77
  • Modders
  • 823 posts
  • Gender:Male

Posted 05 August 2018 - 05:14 AM

Yeah, the cutscene ID was indeed set to the target character. But it appears switching ID to Player1 would result in an even worse outcome in my case. I was able to finish the cutscene, but a good portion of scripting continued when I enter the map where the target character fled to. Let's just say, a reload of the game would be easier to manage. :p





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users