Sit and position
From OpenSimulator
(Difference between revisions)
m (Robot: Cosmetic changes) |
m (Indentation) |
||
Line 4: | Line 4: | ||
<source lang="lsl"> | <source lang="lsl"> | ||
− | + | default | |
− | + | { | |
− | + | state_entry() | |
− | state_entry() | + | { |
− | + | llSetText("sit here", <0.0, 1.0, 0.0>, 1.0); | |
− | + | llSay(PUBLIC_CHANNEL, "started"); | |
− | + | vector rot=<180.0, -180.0, 0.0> * DEG_TO_RAD; | |
− | + | rotation finalrot = llEuler2Rot(rot); | |
− | + | llSitTarget(<-0.35, 0.0, 0.75>, finalrot); | |
− | + | } | |
− | + | ||
} | } | ||
− | |||
</source> | </source> | ||
[[Category:Scripts]] | [[Category:Scripts]] |
Latest revision as of 06:31, 22 September 2020
[edit] Sit and position
Just drop into an object and play with the vector rot stuff and llsitTarget till happy :-)
default { state_entry() { llSetText("sit here", <0.0, 1.0, 0.0>, 1.0); llSay(PUBLIC_CHANNEL, "started"); vector rot=<180.0, -180.0, 0.0> * DEG_TO_RAD; rotation finalrot = llEuler2Rot(rot); llSitTarget(<-0.35, 0.0, 0.75>, finalrot); } }