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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
11 May 2012 10:42 PM
This sounds pretty trivial, but my current method simply doesn't work. I'm basically checking if the camera's CoordinateFrame is within 3 studs of the positon of the character's head. I don't really know where it's going wrong because, of course, we have no debugging online.
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
11 May 2012 10:56 PM
"we have no debugging online."

...........

Start Server + Start Player or Online mode, doesn't matter.

AppData\Local\Roblox\Logs

Start reading.
Report Abuse
MM233 is not online. MM233
Joined: 19 Jun 2008
Total Posts: 925
11 May 2012 11:07 PM
Lock First Person, or simply scrolled in first person? Because for the prior, you could find the player and look at the CameraMode Enum. I believe it has only 2 values, Classic and LockFirstPerson.
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
11 May 2012 11:56 PM
No useful info in logs.
Report Abuse
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
12 May 2012 12:08 AM
[ Content Deleted ]
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
12 May 2012 05:46 AM
I edited a free modeled FPS script so that it detects if the player's camera is FPS or not, however, in offline it works perfectly, but in online, I'm not sure.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
12 May 2012 05:56 AM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2012 10:11 AM
[ Content Deleted ]
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
12 May 2012 10:14 AM
It's the thread scheduler files that are useful. Check the date modified. Roblox usually creates two or more for a single game.
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
12 May 2012 10:44 AM
I don't want to lock the camera in first-person, that's why I'm _detecting_ it. Thanks though.

None of those log files had any information. I looked at all of them. I know there had to have been something wrong though because I put a TextLabel in to report the distance and it was never changed. It had to have reached that code because it was in a loop in the top level scope.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2012 10:47 AM
[ Content Deleted ]
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
12 May 2012 10:50 AM
Yeah, Oysi, that's the infuriating part. I've had this working elsewhere too, and I copied the code exactly without any luck.

local cam = workspace.CurrentCamera
local rel = cam.CoordinateFrame.p - script.Parent.Parent.Parent.Character.Head.Position
local d2 = rel.x * rel.x + rel.y * rel.y + rel.z * rel.z
if d2 < 3 * 3 then
--stuff
end
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2012 10:54 AM
[ Content Deleted ]
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
12 May 2012 10:56 AM
Blarg. Apparently my own Pythagorean implementation isn't good enough for Roblox. I switched it to magnitude and it works. I didn't really want a square-root for each suit every 1/20th of a second though.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2012 10:58 AM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
12 May 2012 11:00 AM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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