Jump to content


Photo

'Snapping Camera to an Object' Script


  • Please log in to reply
2 replies to this topic

#1 Sleetil

Sleetil
  • Members
  • 140 posts

Posted 27 August 2010 - 12:49 AM

I'm using this script on a map.. I set Snapping to be true on the script; although the camera is snapping to an object, it won't stay snapped if I select a builder, or a different part of the map, etc.. Is this something that can be solved?

EDIT:

I feel so happy! I solved the issue, but I think that explaining the problem and issue would be confusing, so I'll go ahead and not say anything more about it. :w00t:

Edited by Sleetil, 28 August 2010 - 11:32 PM.


#2 Puzzler33

Puzzler33
  • Members
  • 226 posts

Posted 29 September 2010 - 03:31 PM

You locked the camera I take it...
Posted Image

#3 Sleetil

Sleetil
  • Members
  • 140 posts

Posted 05 October 2010 - 03:36 AM

At Puzzler33:
Umm... Not quite.
Essentially, in my map, I had the camera snapping to one object for the first few minutes, and this camera worked totally fine. And then that object was to be deleted, and the camera would then snap to a new unit, under new conditions. Even though the script was correct, being set to lock to the unit, correct distance, and the script was being reobserved every frame, the camera for whatever reason wouldn't stay snapped to that second unit if I clicked away from it. I don't remember what I did to solve it, but somehow I resolved the issue..

Edited by Sleetil, 05 October 2010 - 03:36 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users