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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help,
Author Message
Catalyst Offline
Member

Posts: 212
Joined: Aug 2014
Reputation: 3
Post: #1
Help,

Hello everyone,
I need a suggestion,how to stop image fadding, I just maked player lying down and it stand up and image has faded.Its normal but how to stop fadding?
I know how to use timer, but don't know the fade stop function.Help

Thanks.There is the script

void OnStart()
{
PlayMusic("map_01.ogg", true, 0.5, 6, 1, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
SetPlayerActive(false);
SetPlayerCrouching(true);
SetPlayerHealth(10);
StartPlayerLookAt("LookArea", 3, 6, "StopPlayerLookAt");
FadeOut(0);
FadeIn(3);
AddTimer("", 3, "Intro");
SetPlayerJumpDisabled(true);
SetPlayerMoveSpeedMul(0.35f);
SetPlayerRunSpeedMul(0);
SetPlayerLampOil(0);
}

Egypt CS
[Image: 27003.png]
08-29-2014 12:44 PM
Find all posts by this user Quote this message in a reply
Slanderous Offline
Posting Freak

Posts: 1,608
Joined: Dec 2012
Reputation: 62
Post: #2
RE: Help,

As far as I remember, you can't have both FadeIn and FadeOut in your scripts. You need to put a timer that triggers FadeIn. Put that timer in your void OnStart()
08-29-2014 01:01 PM
Find all posts by this user Quote this message in a reply
DnALANGE Offline
Banned

Posts: 1,550
Joined: Jan 2012
Post: #3
RE: Help,

True lazzer.
it is OR fadIN OR FadeOut.
Both wil not work.
Only with a timer added.
08-29-2014 02:27 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)