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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waking up from Bed Script.
Author Message
Angerpull Offline
Member

Posts: 88
Joined: Jun 2011
Reputation: 0
Post: #1
Waking up from Bed Script.

Hello I was wondering if there's a possible way for my level to start with the player waking up from a nightmare. Like he wakes up, gasps and has a blurry effect and such.

Is it possible to do this?

Thanks in advance!

-Angerpull Angel
06-27-2011 05:27 PM
Find all posts by this user Quote this message in a reply
Paulpolska Offline
Member

Posts: 144
Joined: Jun 2011
Reputation: 0
Post: #2
RE: Waking up from Bed Script.

Use script from "The Servant Mod" ;]

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
06-27-2011 05:34 PM
Find all posts by this user Quote this message in a reply
Angerpull Offline
Member

Posts: 88
Joined: Jun 2011
Reputation: 0
Post: #3
RE: Waking up from Bed Script.

(06-27-2011 05:34 PM)Paulpolska Wrote:  Use script from "The Servant Mod" ;]

A link to the mod would be nice.
06-27-2011 05:35 PM
Find all posts by this user Quote this message in a reply
Khyrpa Online
Senior Member

Posts: 638
Joined: Apr 2011
Reputation: 24
Post: #4
RE: Waking up from Bed Script.

I would suggest learning how simple timers work.
Then using these, you can pretty much do what you wanted:
important ones
FadeOut(float afTime);
FadeIn(float afTime);
FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);
SetPlayerRunSpeedMul(float afMul);
SetPlayerMoveSpeedMul(float afMul);
SetPlayerJumpDisabled(bool abX);
SetPlayerCrouchDisabled(bool abX);

screen effects
FadeRadialBlurTo(float afSize, float afSpeed);
SetRadialBlurStartDist(float afStartDist);
FadeImageTrailTo(float afAmount, float afSpeed);

sound effects
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
06-27-2011 05:45 PM
Find all posts by this user Quote this message in a reply
Angerpull Offline
Member

Posts: 88
Joined: Jun 2011
Reputation: 0
Post: #5
RE: Waking up from Bed Script.

(06-27-2011 05:45 PM)Khyrpa Wrote:  I would suggest learning how simple timers work.
Then using these, you can pretty much do what you wanted:
important ones
FadeOut(float afTime);
FadeIn(float afTime);
FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);
SetPlayerRunSpeedMul(float afMul);
SetPlayerMoveSpeedMul(float afMul);
SetPlayerJumpDisabled(bool abX);
SetPlayerCrouchDisabled(bool abX);

screen effects
FadeRadialBlurTo(float afSize, float afSpeed);
SetRadialBlurStartDist(float afStartDist);
FadeImageTrailTo(float afAmount, float afSpeed);

sound effects
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);

Holy sh... Those are just commands to me, I do not see how I can make them function and such. Very new to scripting.
06-27-2011 05:59 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #6
RE: Waking up from Bed Script.

Here's a link that can help you as it talks about it somewhat.

http://www.frictionalgames.com/forum/thread-4626.html

06-27-2011 06:30 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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