1. default
  2. {
  3. state_entry()
  4. {
  5.  
  6. llSitTarget(<-0.2,1,0.5>,<0,0,1,0>);//sets original sit target based on prim size and offset
  7. }
  8.  
  9. changed(integer change)//and avatar sitting on a prim triggers CHANGED_LINK so we can use this to change the sit target
  10. {
  11. if(change==CHANGED_LINK)
  12. {
  13. llSitTarget(<-0.2,0,0.5>,<0,0,1,0>);//changes the postion
  14.  
  15. llResetScript();
  16.  
  17. }
  18. }
  19.  
  20. }
  21.