Page 1 of 1

Portal Problem

Posted: Tue Mar 08, 2022 4:03 am
by RayB
Can somebody tell me how to use either of the portals in Grim 2? I have tried to place one in a mod but when the party walks through it the screen turns white and stays white. I was able to copy the portal definition into my mod and change the onArrival function to run a dungeon script and function of mine so I can get the screen back. But the party is then locked up. The party can't move or anything. Is it possible to free up the party after walking through the portal?

Re: Portal Problem

Posted: Tue Mar 08, 2022 4:34 am
by minmay
Going through a portal sets the time multiplier to 0.3, disables controls, and fades out the screen. You can undo the effects like this:

Code: Select all

GameMode.setTimeMultiplier(1)
GameMode.setEnableControls(true)
GameMode.fadeIn(0,0)