|
Victor Reisman
Smithy of SL
Join date: 5 May 2006
Posts: 18
|
09-24-2008 18:06
The title says it all, Im traing to make a security camera of sorts, right now I just cant figure out how to rotate an object toward a persons position. This is something what Ive got so far.
sensor(integer num) { integer i; for (i = 0;i < num; i++) { if(llDetectedKey(i) != (llGetOwnerKey(llGetOwner()))) { llSetRot( *insert what I need here* ); } } }
Can anyone give me some help/point me in the right direction? Thanks in advance.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
09-24-2008 22:49
try the lsl portal, IIRC there is a brief example under the rotation topic that supplies the formula you want.... or possibly the rotbetween or anglebetween functions... my brain is to fried right now to remember much more than that
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Victor Reisman
Smithy of SL
Join date: 5 May 2006
Posts: 18
|
09-25-2008 07:44
Ill try looking there, but that's about like navigating the wiki page @.@
_____________________
Stylize, Revolutionize, Whatever your game is, Second Life is a new world with unlimited potential, and I intend to push the unlimited.
|