4WalledKid
Member
Posts: 107
Threads: 23
Joined: Oct 2012
Reputation:
1
|
Wake Up Script
Hello there! Can someone please tell me how I can make a "wake up" effect? Like moving the camera and stuff. Thanks!
(This post was last modified: 10-17-2012, 10:51 PM by 4WalledKid.)
|
|
10-15-2012, 09:53 PM |
|
Curse of Hope
Junior Member
Posts: 23
Threads: 1
Joined: Oct 2012
Reputation:
3
|
RE: Wake Up Script
void OnStart()
{
FadeOut(0.0f);
SetPlayerActive(false);
FadePlayerRollTo(50, 150, 150);
SetPlayerCrouching(true);
AddTimer("Wakeup", 10.0, "Wakeup");
}
void Wakeup(string &in asTimer)
{
SetPlayerActive(true);
FadeIn(3.0f);
FadePlayerRollTo(0, 33, 33);
SetPlayerCrouching(false);
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
There are other ways to do it, but this is the most basic one in my oppinion.
The cough sound effect is not needed, but it sounds and looks better. (:
If you dont understand what's happening here, this is an explanation:
When the map starts, the screen will be faded out, the player will crouch and the
screen will be twisted sideways which gives you the feeling that your laying down.
The timer is set on 10 seconds, and when it goes off it will trigger the timer function
below which fades and twists the screen back to normal. The Player is also not
active during this process, so wont be able to walk away during the time the script
is active.
Hope this helped you out // Joakim
(This post was last modified: 10-16-2012, 07:17 AM by Curse of Hope.)
|
|
10-16-2012, 07:08 AM |
|
Steve
Member
Posts: 178
Threads: 17
Joined: Jun 2012
Reputation:
7
|
RE: Wake Up Script
CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 10-16-2012, 07:20 AM by Steve.)
|
|
10-16-2012, 07:20 AM |
|
4WalledKid
Member
Posts: 107
Threads: 23
Joined: Oct 2012
Reputation:
1
|
|
10-16-2012, 11:52 AM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Wake Up Script
By teleporting him. Just fade out, teleport, fade in.
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
10-16-2012, 12:54 PM |
|
4WalledKid
Member
Posts: 107
Threads: 23
Joined: Oct 2012
Reputation:
1
|
RE: Wake Up Script
(10-16-2012, 12:54 PM)The chaser Wrote: By teleporting him. Just fade out, teleport, fade in.
What I want to do is make the player move or walk from a start point to another. To simulate he is actually getting off the bed.
(This post was last modified: 10-16-2012, 03:51 PM by 4WalledKid.)
|
|
10-16-2012, 03:12 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Wake Up Script
Trying is the first step to success.
|
|
10-16-2012, 03:29 PM |
|
4WalledKid
Member
Posts: 107
Threads: 23
Joined: Oct 2012
Reputation:
1
|
|
10-16-2012, 03:56 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Wake Up Script
I searched: Walk...
Trying is the first step to success.
|
|
10-16-2012, 03:57 PM |
|
|