[Opensim-dev] using LSL functions from a region module

CJ Davies cjohndavies at gmail.com
Thu Feb 2 17:30:41 UTC 2012


I want to control the camera from a region module. I know this can be 
done from a LSL script using llSetCameraParams() which I know from 
looking at the OpenSim source calls SendSetFollowCamProperties() which 
then sends the actual simulator packet to the client using OutPacket(), 
but I am unsure how to leverage this functionality in my region module.

Can I somehow call the llSetCameraParams() or 
SendSetFollowCamProperties() methods from within my region module, or do 
I have to reimplement their functionality locally in the scope of my 
region module?

My only attempt so far has involved declaring & instantiating a local 
LSL_Api object in my region module & then using this to call 
llSetCameraParams() but this (unsurprisingly) fails, I suspect because 
of a scope issue - I expect I would need to tie-in with the existing 
LSL_Api object if I wanted to use the methods directly like this, rather 
than instantiating a new one that doesn't have access to the scene/prim 
objects?

Regards,
CJ Davies



More information about the Opensim-dev mailing list