generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: [?] Force 1st Person

Previous Thread :: Next Thread 
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
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 is not online. Valaxia
Joined: 27 Mar 2012
Total Posts: 73
28 Mar 2012 10:34 PM
[ Content Deleted ]
Report Abuse
Contemptus is not online. Contemptus
Joined: 27 Mar 2012
Total Posts: 368
28 Mar 2012 10:34 PM
I believe that there is a method for LockFirstPerson.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
28 Mar 2012 10:34 PM
Well, yes, I suppose. But that's not much help.
Report Abuse
Legend26 is not online. 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
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
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 is not online. 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
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
28 Mar 2012 10:38 PM
ForceFirstPerson = nil
Report Abuse
TheNewFissy is not online. TheNewFissy
Joined: 03 Jan 2011
Total Posts: 1301
28 Mar 2012 10:39 PM
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
Report Abuse
Legend26 is not online. 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
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
29 Mar 2012 02:25 PM
Thank you both.
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image