SomeoneIknow Posted January 31, 2011 Share Posted January 31, 2011 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 More sharing options...
davidlallen Posted January 31, 2011 Share Posted January 31, 2011 The function you want is DisablePlayerControls. You can find the details at this link. Link to comment Share on other sites More sharing options...
SomeoneIknow Posted January 31, 2011 Author Share Posted January 31, 2011 (edited) 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 January 31, 2011 by SomeoneIknow Link to comment Share on other sites More sharing options...
davidlallen Posted January 31, 2011 Share Posted January 31, 2011 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 More sharing options...
SomeoneIknow Posted February 1, 2011 Author Share Posted February 1, 2011 Ah! These functions are mostly what I was lookin for. Thanks mate this is like the 2nd question you helped me out with. Kudos to you. Link to comment Share on other sites More sharing options...
Recommended Posts