Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Camera Camera_Follower  

Camera_Follower

Camera Follower by WolfWings Majestic.lsl

Category: Camera
By : WolfWings Majestic
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Camera_Follower
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Camera_Follower_by_WolfWings_Majest_1.lsl
1
2 //********************************************************
3 //This Script was pulled out for you by YadNi Monde from the LSL WIKI at http://www.lslwiki.org, it is intended to stay FREE by it s author(s) and all the comments here in ORANGE must NOT be deleted. They include notes on how to use it and no help will be provided either by YadNi Monde or it s Author(s). IF YOU DO NOT AGREE WITH THIS JUST DONT USE!!!
4 //********************************************************
5
6
7
8
9
10
11
12 // Camera Follower by WolfWings Majestic
13 //
14 //Originally created by ArkLehane who edited the version posted here and credited to him on this Wiki out of existance.
15 //Re-created and rebuilt by WolfWings Majestic because the script idea is useful, but the original version could be improved on.
16 //
17 //Moves an object to the position of your camera.
18
19 integer channel = 0;
20
21 default {
22 state_entry() {
23 llRequestPermissions(llGetOwner(),PERMISSION_TRACK_CAMERA);
24 }
26 if(perm & PERMISSION_TRACK_CAMERA) {
27 state camera_captured;
28 }
29 }
30 }
31
32 state camera_captured {
33 state_entry() {
34 llListen(channel,"",llGetOwner(),"");
36 llSetTimerEvent(0.1);
37 }
38 timer() {
39 llMoveToTarget(llGetCameraPos()+<0,0,1>,0.1);
40 }
41 listen(integer channel, string name, key id, string message) {
42 if(llToLower(message) == "hold") {
43 state camera_captured_disabled;
44 }
45 }
46 }
47
48 state camera_captured_disabled {
49 state_entry() {
50 llListen(channel,"",llGetOwner(),"");
52 }
53 listen(integer channel, string name, key id, string message) {
54 if(llToLower(message) == "follow") {
55 state camera_captured;
56 }
57 }
58 }
59
60
61 // END //

Back to the Best Free Tools in Second Life and OpenSim.