Your parenthesis ( { ) in the second void was wrong. Also, I know there is something wrong with your puzzle, but I can't help there because I don't work with if statements. There is at least one bracket missing/too many.
Your parenthesis ( { ) in the second void was wrong. Also, I know there is something wrong with your puzzle, but I can't help there because I don't work with if statements. There is at least one bracket missing/too many.
Hey a friend of mine told me to put it on voidonstart maybe the code puzzle will happen instantly if that works, so i put the code on void on start but now when I launch the game it gets me these 2 errors
FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Lifeless_The Abandon.hps'!
main (17, 7) : ERR : Expected identifier
main (18, 1) : ERR : Unexpected token '}'
here is the updated code maybe you can tell me what I did wrong, sorry for being like I know nothing. but I'm a beginner at coding and stufd, I'm still kinda learning little by little
void wakeUp() {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(0, 2);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.5, 2);
SetPlayerCrouching(true); // Simulates being on the ground
PlayMusic("18_amb.ogg", true, 1, 4, 1, true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(0, 2); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground PlayMusic("18_amb.ogg", true, 1, 4, 1, true); AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void wakeUp()
{
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(0, 2);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.5, 2);
SetPlayerCrouching(true); // Simulates being on the ground
PlayMusic("18_amb.ogg", true, 1, 4, 1, true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}