|
| 28 Mar 2012 10:32 PM |
In Crossfire, the maker has figured out a way to determine if a player is zoomed in all the way; how did he do this?
The :Zoom() method is locked. |
|
|
| Report Abuse |
|
|
Valaxia
|
  |
| Joined: 27 Mar 2012 |
| Total Posts: 73 |
|
| |
|
|
| 28 Mar 2012 10:34 PM |
| I believe that there is a method for LockFirstPerson. |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2012 10:34 PM |
| Well, yes, I suppose. But that's not much help. |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 28 Mar 2012 10:35 PM |
| If you want to force first person, set Player.CameraMode to "ForceFirstPerson" in a local script. To detect the distance the camera is from the player, find the magnitude of the camera's focus to it coordinate frame. |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2012 10:35 PM |
| I'm looking at all of the Camera properties, methods and events. There's nothing but :Zoom() that I think would suit 1st person. |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 28 Mar 2012 10:38 PM |
| The property is in the player object, not the camera. Strange, I know. |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Mar 2012 10:39 PM |
| game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 28 Mar 2012 10:40 PM |
^
Why didn't they just choose "FirstPerson" instead. Much more memorable than LockFirstPerson. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Mar 2012 02:34 PM |
| I have a script for this, but it makes you first person as soon as you enter the game |
|
|
| Report Abuse |
|
|