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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Intro

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.

(This post was last modified: 12-31-2014, 07:53 PM by Mudbill.)
12-31-2014, 07:52 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)