Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- llListen(-5,"","","");
- }
- listen(integer chan, string name, key id, string msg)
- {
- list split = llParseStringKeepNulls(msg,["||"],[]);
- list params;
- integer len = llGetListLength(split);
- integer i;
- for(i = 0; i < len; i +=2)
- {
- integer rule = llList2Integer(split,i);
- if((rule == CAMERA_POSITION)||
- (rule == CAMERA_FOCUS_OFFSET)||
- (rule == CAMERA_FOCUS))
- {
- params += [rule,(vector)llList2String(split,i+1)];
- }
- if((rule == CAMERA_BEHINDNESS_ANGLE) ||
- (rule == CAMERA_BEHINDNESS_LAG) ||
- (rule == CAMERA_DISTANCE) ||
- (rule == CAMERA_FOCUS_LAG) ||
- (rule == CAMERA_FOCUS_THRESHOLD) ||
- (rule == CAMERA_PITCH) ||
- (rule == CAMERA_POSITION_LAG) ||
- (rule == CAMERA_POSITION_THRESHOLD))
- {
- params += [rule, (float)llList2String(split,i+1)];
- }
- else if((rule == CAMERA_ACTIVE) ||
- (rule == CAMERA_FOCUS_LOCKED) ||
- (rule == CAMERA_POSITION_LOCKED))
- {
- params += [rule,llList2Integer(split,i+1)];
- }
- }
- //llSetCameraParams(params);
- llOwnerSay(llDumpList2String(params,"|"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement