Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
01-05-2010 12:06
Why Doesn't integer listenChannel=-39837282; default { attach(key what) { llRequestPermissions(llGetOwner(),PERMISSION_CONTROL_CAMERA); llListen(listenChannel,"","",""  ; } listen( integer channel, string name, key id, string message ) { if(channel==listenChannel){ llSetCameraParams([ CAMERA_ACTIVE, 1, CAMERA_POSITION, message]); } } } work? It's sent from a moving object back to this attachment but the camera just goes crazy but stays on my av?
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-05-2010 12:14
The data parameter for CAMERA_POSITION is supposed to be a vector quantity, so you need to convert the string "message" to a vector. That might be part of the problem.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Laurie Stilman
Registered User
Join date: 11 Apr 2006
Posts: 45
|
01-05-2010 12:34
There may be a more fundamental mis-understanding here: llRequestPermissions() doesn't return its result through the listen() event, it returns it through the run_time_permissions() event. The llSetCameraParams() call will fail (with an error shouted on debug) if permissions haven't been granted yet.
Either way, if neither mine nor Rolig's answer helps, please be more specific about what you're doing what's happening (or not happening).
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
01-05-2010 12:35
From the wiki at  for FollowCam "For instance, a loose camera setting allows sudden changes in vehicle acceleration to happen without causing dizzying jolts in the camera" Are your camera settings too tight, perhaps?
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
01-05-2010 12:49
The camera setting don't seem to be going with the vehicles.
Permissions will have been obtained.
I've tried type casting message to vector.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-05-2010 13:58
Rolig and Laurie look like they have it, but also you should always check that you have the needed permissions before you use the functions that require them. if I understand what you're trying to do (from previous threads) you should be able to do all this camera action from the actual vehicle with CAMERA_DISTANCE, CAMERA_FOCUS_OFFSET and CAMERA_FOCUS_LOCKED. here's a page that hase several camera configurations that may help http://wiki.secondlife.com/wiki/FollowCamthe llSetCamera*Offset functions may work better, I can't remember if they are only one time, or are locally relative always (since they set as local relative)
_____________________
| | . "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... | - 
|