OsGetSitTargetPos
From OpenSimulator
Revision as of 00:29, 1 March 2024 by JeffKelley (Talk | contribs)
vector osGetSitTargetPos()
| |
Return the sit target location as set by llSitTarget. | |
Threat Level | This function does not do a threat level check |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// Unit test : Writing then reading SitTarget default { state_entry() { vector write_pos = <1,2,3>; vector write_rot = <4,5,6>; llSitTarget (write_pos, llEuler2Rot(write_rot * DEG_TO_RAD)); vector read_pos = osGetSitTargetPos(); vector read_rot = llRot2Euler (osGetSitTargetRot()) * RAD_TO_DEG; llOwnerSay (read_pos); llOwnerSay (read_rot); } } [12:45] Object: <1.000000, 2.000000, 3.000000> [12:45] Object: <4.000000, 5.000000, 6.000000> | |
Notes | |
This function was added in 0.9.3.0 |