OsForceOtherSit
From OpenSimulator
(Difference between revisions)
m (Indentation) |
|||
| Line 14: | Line 14: | ||
|delay=0 | |delay=0 | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
| − | + | // | |
| − | //Simple example for osForceOtherSit | + | // Simple example for osForceOtherSit |
| + | // | ||
default | default | ||
| Line 21: | Line 22: | ||
state_entry() | state_entry() | ||
{ | { | ||
| − | + | llSay(PUBLIC_CHANNEL, "Touch to see osForceOtherSit in action."); | |
| + | |||
| + | // The vector's components must not all be set to 0 for effect to take place. | ||
| + | llSitTarget(<0.0, 0.0, 1.0>, ZERO_ROTATION); | ||
} | } | ||
| − | + | ||
| − | + | touch_start(integer number) | |
{ | { | ||
| − | + | osForceOtherSit(llDetectedKey(0)); | |
} | } | ||
} | } | ||
| − | |||
</source> | </source> | ||
|additional_info=This function was added in 0.8.1-post-fixes | |additional_info=This function was added in 0.8.1-post-fixes | ||
}} | }} | ||
Revision as of 15:00, 23 November 2020
osForceOtherSit(key avatar)
osForceOtherSit(key avatar, key target) | |
Forces a sit of targeted avatar onto prim.
In OpenSimulator 0.8.0.1. | |
| Threat Level | VeryHigh |
| Permissions | Use of this function is always disabled by default |
| Extra Delay | 0 seconds |
| Example(s) | |
// // Simple example for osForceOtherSit // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see osForceOtherSit in action."); // The vector's components must not all be set to 0 for effect to take place. llSitTarget(<0.0, 0.0, 1.0>, ZERO_ROTATION); } touch_start(integer number) { osForceOtherSit(llDetectedKey(0)); } } | |
| Notes | |
| This function was added in 0.8.1-post-fixes | |