Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Fainting into a new map [Need scripting help]
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Fainting into a new map [Need scripting help]

If the script crashes, I can only assume it isn't finding the map. I do think you need to include the .map extension in the script. Also make sure the name is correct.

However as for your situation, you'll want to use some timers here. If you run the ChangeMap script immediately after the FadeOut script, it won't have time to fade out the screen, so it will just cut right away.

Also if you want the player's view to roll to the side, I think the speeds you have chosen for FadePlayerRollTo are very high. I think they might even be high enough so that the player won't notice the roll, but just the new angle of the camera. I suggest using speeds around 10-15.

As for the timers, instead of running ChangeMap right after FadeOut, try doing:

PHP Code: (Select All)
AddTimer("fadeout"5.5f"TimerChangeMap"); 

And then below your the collision block:

PHP Code: (Select All)
void TimerChangeMap(string &in asTimer)
{
    
ChangeMap("00_Awakened.map""PlayerStartArea_1""""",); //Changes the map


This will do so that the map change won't happen until 5.5 seconds after the fade out starts.

(This post was last modified: 01-07-2015, 11:11 AM by Mudbill.)
01-07-2015, 11:10 AM
Find


Messages In This Thread
RE: Fainting into a new map [Need scripting help] - by Mudbill - 01-07-2015, 11:10 AM



Users browsing this thread: 1 Guest(s)