Jump to content
You are about to reply to a thread that has been inactive for 1577 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

When multiple avatars are sitting on a vehicle, does llSetCameraParams control the cameras for all of them? Or is it per-prim?

How about requesting permissions? Per prim with sit target?

 

  • Like 1
Posted (edited)

I *think* camera params affect all sitters... who are sitting on that specific prim. I don't know what happens with sit targets or linksets (but I would assume camera params on root affected the whole linkset).

Permission requests are per script. Only one set of permissions can be held for one avatar. Making a new request replaces all previous permissions.

Edit: Sorry, I was thinking about the two other functions, llSetCameraAtOffset and llSetCameraEyeOffset, not llSetCameraParams.

Edited by Wulfie Reanimator
Posted
16 minutes ago, Wulfie Reanimator said:

I would assume camera params on root affected the whole linkset.

I'm not sure what happens when you have multiple seats. I've had troubles with that.

Posted

I'm confused by the question. llSetCameraParams operates on whichever agent the script currently has PERMISSION_CONTROL_CAMERA, which it can silently swap among all the sitters on a linkset with calls to llRequestPermissions().

If instead we're actually talking about the prim properties set by llSetCameraAtOffset and -EyeOffset, those are (obviously?) per link, whether there's a sit target there or not. (Sit target is pretty much irrelevant either way.)

Posted
7 minutes ago, Qie Niangao said:

I'm confused by the question. llSetCameraParams operates on whichever agent the script currently has PERMISSION_CONTROL_CAMERA, which it can silently swap among all the sitters on a linkset with calls to llRequestPermissions().

If instead we're actually talking about the prim properties set by llSetCameraAtOffset and -EyeOffset, those are (obviously?) per link, whether there's a sit target there or not. (Sit target is pretty much irrelevant either way.)

Ah, right, llRequestPermissions specifies which avatar, and that ties the script to that agent.

Posted

You can set it for each avatar. If one avatar stands up all other cameras are reset though. (or got that fixed? I doubt that) Requires extra code to detect and fix this situation.

llSetCameraEyeOffset / llSetCameraAtOffset are a prim property and can be used as long as you have one seat per avatar.

  • Like 1
Posted
7 hours ago, Nova Convair said:

If one avatar stands up all other cameras are reset though. (or got that fixed? I doubt that) Requires extra code to detect and fix this situation.

Ah, that's why I have problems when a passenger gets off.

Posted

I try to creat 2 scripts  on a the linket prims to try to get the camera permisions for each sitter, but i was not able to acomplish that for some reason always get the first script even that is all ready set permision for the first persmision.

You are about to reply to a thread that has been inactive for 1577 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...