08-06-2012, 11:40 PM
I've been browsing on the internet for 5 hours, and it is starting to get frustrating...
This is what I want to do:
Player stands next to bed, screen fades out (theres an area next to the bed called: "PlayerSleep"
Player wakes up in another map(!)
(I have one Floor_2_day.map and one Floor_2_Night.map, I want to switch from day to night you get it?)
Now this is my script I have so far (just started)
////////////////////////////
// Run when first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Beforethestorm.ogg", true, 0.4, 8, 1, true);
}
Script for the Floor_2_Night.map[b]
////////////////////////////
// Run first time starting map
void OnEnter()
{
}
[b]Can anyone, pls help me???[/b][/b]
This is what I want to do:
Player stands next to bed, screen fades out (theres an area next to the bed called: "PlayerSleep"
Player wakes up in another map(!)
(I have one Floor_2_day.map and one Floor_2_Night.map, I want to switch from day to night you get it?)
Now this is my script I have so far (just started)
////////////////////////////
// Run when first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Beforethestorm.ogg", true, 0.4, 8, 1, true);
}
Script for the Floor_2_Night.map[b]
////////////////////////////
// Run first time starting map
void OnEnter()
{
}
[b]Can anyone, pls help me???[/b][/b]
