Jump to content

Script to shake the avatars camera?


Jim Diavolo
 Share

You are about to reply to a thread that has been inactive for 4531 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hey I require a script that will take control of the avatars camera and shake it giving the appearance of an earthquake, as well as having other objects listening so that at the time of this happening objects can fall off stuff. Any help would be sooo goood PLEASE!!!

Link to comment
Share on other sites

I would suggest looking at llSetCameraParams() first to get an idea of what you want the camera to do. Then assign a random function value to each of the camera parameter variables .

Once you have that accomplished, just set up a llSetTimerEvent() and run the llSetCameraParams(random_functions) through a timer(). 

Each camera param value will change every time the timer() is called by llSetTimerEvent() giving you a random change in the camera view. 

Instead of a timer(), you may decide to step through each change manually to get a precise and repeatable change in the camera view.

 

:-)

Link to comment
Share on other sites

Be aware that no script can fully control the cam.  It controls the "default" or "scripted cam" -- that is, the camera parameters in force when you press the Escape key a time or two.  But the user can always grab onto something in the scene and zoom into it, pan around from it, etc., overriding this default cam.  A script can know that this is happening, but there's nothing it can do to force the user back into default cam mode.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4531 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...