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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Intro
ethics Offline
Member

Posts: 51
Threads: 18
Joined: Jan 2014
Reputation: 0
#3
RE: Intro

(12-31-2014, 07:52 PM)Mudbill Wrote: Pretty sure there is a wakeup script somewhere around here. I see it all the time.

Basically, FadePlayerRollTo will rotate the camera. I believe 0 is normal, 90 is 90 degrees to the right and -90 is 90 degrees to the left, etc. Use that in combination with StartPlayerLookAt so that the head moves how you want it. Just place some "Look" script areas around the bed. Don't forget to time things right with AddTimer.

Use MovePlayerHeadPos to position the camera up and down on the body. I don't really use the X and Z axes for this, but you can. I generally use Y to move the camera down to begin with, then back up once the player stands up.

It takes experimentation and time to get something right. I suggest you try.

Ok, thank you: Good to see you're still active with Amnesia.

void WakeUp(string &in asTimer)
{
AddLocalVarInt("BlackoutStep", 1);
float fEventSpeed = 0.5f;

switch(GetLocalVarInt("BlackoutStep")) {
case 1:
StartPlayerLookAt("Arealook2", 0.1f, 0.1f, "");
FadeIn(4);
FadeImageTrailTo(2,1);
ShowPlayerCrossHairIcons(false);
SetPlayerMoveSpeedMul(0.05f);
SetPlayerLookSpeedMul(0.05f);
fEventSpeed = 3.0f;
break;
}
if(GetLocalVarInt("BlackoutStep") < 19) AddTimer("blackout", fEventSpeed, "WakeUp");
}

I've seen something like this is a custom story. Can you explain it? It seems really complicated :/

12-31-2014, 10:41 PM
Find


Messages In This Thread
Intro - by ethics - 12-31-2014, 07:45 PM
RE: Intro - by Mudbill - 12-31-2014, 07:52 PM
RE: Intro - by ethics - 12-31-2014, 10:41 PM
RE: Intro - by Radical Batz - 01-01-2015, 12:03 AM
RE: Intro - by Mudbill - 01-01-2015, 06:25 AM



Users browsing this thread: 1 Guest(s)