Jump to content

Lock player screen script function?


SomeoneIknow

Recommended Posts

I'm trying to learn how to lock the player's screen so that he is looking at either a particular reference or the screen look is locked by some kind of axis.

 

Like how when the PC wakes up in Doc Mitchell's at the start of the game and the player camera is locked to looking at Doc Mitchell. So I wanna know what the function is or whatever I need to do to get a similar effect. It might also help if someone could point me to an existing script in-game that does this so I may learn. I've looked over the Doc Mitchell script, the quest script and other quest scripts but I couldn't seem to find it, or if I did I missed it.

 

Thanks in advance.

Link to comment
Share on other sites

Thats not quite what I'm looking for. I want to make it so the player can look around (in forced 1'st person view) but restricted OR the player's view is focused on something or a particular angle in the screen.

 

Like when the player wakes up to doc mitchell, the PC is looking at doc mitchell (or is his direction). Likewise I want to know how to force the player to look at a particular direction/angle.

Edited by SomeoneIknow
Link to comment
Share on other sites

The startup quest is VCG01. It has a number of scripts. If you look at scripts such as VCG01DocMitchellCouchTriggerSCRIPT, you will see it calls DisablePlayerControls. The command has several options which you can individually control. If you are worried about the player facing the wrong direction, then you can force the player to face a certain direction with GetHeadingAngle and SetAngle. These and many other useful functions are documented in the geck wiki functions page.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...