llRezObjectWithParams() doesn't rezz
tracked
Ratany Resident
When an agent wearing an object as a HUD that uses llRezObjectWithParams() is sitting on a sit target, the object that is rezzed when the agent is not sitting is not rezzed.
Log In
Maestro Linden
updated the status to
tracked
Maestro Linden
I can reproduce this issue on SLS 2024-04-13.8669470296. I modified the 'Popgun (drag onto yourself)' object from Library to use llRezObjectWithParams() rather than llRezObject(), with the relative position flag enabled:
llRezObjectWithParams("bullet", [REZ_PARAM, LIFETIME,
REZ_POS, <1, 0, 0.5> * llGetRot(), TRUE, FALSE,
REZ_ROT, ZERO_ROTATION, TRUE,
REZ_VEL, <8, 0, 0>, TRUE, TRUE
]);
When the agent is standing or sitting on the ground, the object rez position is as expected - a bit in front of the agent's chest.
However, if the agent is sitting on an object, including a default box, the computed rez position is incorrect. If the agent is agent is seated near the sim origin at <0,0,0>, the position is simply incorrect - it's using the attached agent's local position in the linkset rather than the agent's world position. If the agent is seated far from the sim origin, the rez operation fails altogether - probably because it's trying to rez the object near the sim origin and the rez position is considered to be too far from the script's position.
Lucia Nightfire
After a talk with a dev in yesterday's server meeting, it was mentioned that LL is aware of this bug already.
Lucia Nightfire
I can repro this while sitting on an object and using llRezObjectWithParams() in an attachment with relative set to TRUE for REZ_POS.
Doesn't have to be an HUD nor does the sit object have to have a sit target.
Doesn't repro when using FALSE for relative nor when standing or sitting on ground.
Bavid Dailey
Could you explain what you mean in an other way> Perhaps provide an example?