Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
|
03-08-2014, 01:52 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Fadein ? or Wake up
Use WakeUp, FadeIn is basically just the screen fading to white.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-08-2014, 01:53 PM |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
RE: Fadein ? or Wake up
Can make script to paste it in my .hps file i say IM NOOB in script xD
|
|
03-08-2014, 01:54 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Fadein ? or Wake up
void wakeUp () { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(20); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.15, 2); SetPlayerCrouching(true); // Simulates being on the ground AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer){ ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); }
Put the text "wakeUp();" in OnStart without the quotation marks.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-08-2014, 01:59 PM |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
RE: Fadein ? or Wake up
So it's need to be like this ???
void OnStart()
void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}
|
|
03-08-2014, 02:03 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Fadein ? or Wake up
Nope.
void OnStart() { wakeUp(); }
void wakeUp () { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(20); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.15, 2); SetPlayerCrouching(true); // Simulates being on the ground AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer){ ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); }
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-08-2014, 02:04 PM |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
RE: Fadein ? or Wake up
Yeah so can you make the white text while he is down and WHEN HE STAND UP it comes "What happened?"
That's my last wish
|
|
03-08-2014, 02:08 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Fadein ? or Wake up
(03-08-2014, 02:08 PM)Straxedix Wrote: Yeah so can you make the white text while he is down and WHEN HE STAND UP it comes "What happened?"
That's my last wish
I can, it's quite simple, but I'm definitely NOT gonna do that. Insert this to the script when he wakes up.
SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
asTextCategory - Category of the text
asTextEntry - Entry of the text. Entry MUST BE in the Category earlier
afTime - How long the message will appear (in seconds)
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-08-2014, 02:13 PM |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
RE: Fadein ? or Wake up
Ok but did neeed something to go in .lang file ?
Or this:SetMessage(string& asTextCategory, string& asTextEntry, float afTime); go to .lang file or .hps file
you confused me a little now
|
|
03-08-2014, 02:17 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Fadein ? or Wake up
(03-08-2014, 02:17 PM)Straxedix Wrote: Ok but did neeed something to go in .lang file ?
Or this:SetMessage(string& asTextCategory, string& asTextEntry, float afTime); go to .lang file or .hps file
you confused me a little now
The SetMessage is on the HPS file, whilst the Category and Entry is at the .lang.
Please note that the lang and the HPS doesn't have the same format and thus if you copy stuff from the HPS to the Lang or vice versa you cannot do it.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-08-2014, 02:20 PM |
|
|