Jump to content

vh1 Boa

Resident
  • Posts

    6
  • Joined

  • Last visited

Everything posted by vh1 Boa

  1. Hi, very compact code! I like it, works perfect! Is it possible to "reset" the position if i wear it again? Thanks very much VH1
  2. Hi, yes, works great! Thank you! But: Little problem again: If i set my Prim "Down" and detach it, this place is the new start place! So it must return to the startPosition befor i take it of. Is there an event BEFORE detach of a Prim? i tried: attach(key id) { if(id) { llResetScript(); } else { llSetPos( startPosition ); llSetText(" ", <1,1,1>, 0); } without success. Thank you VH1
  3. Hi, reset if attach seems to work for the "dissapearing". But now happens: Nothing! my code so far: vector startPosition;vector endPosition;integer counti = 0;default { on_rez(integer a) { llResetScript(); } attach(key id) { llResetScript(); } state_entry() { startPosition = llGetLocalPos(); endPosition = startPosition + <0.1,0.0,0.05>; } touch_start(integer total_number) { if (counti==0) { llOwnerSay( "Up"); counti = 1; llSetPos( endPosition ); } else { llOwnerSay( "Down"); counti = 0; llSetPos( startPosition ); } }} I tried also llSetPrimitiveParams([PRIM_POSITION,endPosition]) and llMoveToTarget(endPosition,0.5) Nothing works. I hope theres a way to move this thing... Thank you, VH1 P.S.: ... dont work with <2,2,2> distance ...
  4. Hi, llGetLocalPos don't work. My Item disapears! (Found it aprox. 10 m above!) Is there an offset or something? Thank you! VH1
  5. Hi, i have a Prim attached on Avatar's Pelvis. Now i want to animate it 'on touch' to come out like a tongue. My version: vector startPosition; vector endPosition; integer counti = 0; default { on_rez(integer a) { llResetScript(); } state_entry() { startPosition = llGetPos(); endPosition = startPosition + <0.0,0.0,0.1>; } touch_start(integer total_number) { if (counti==0) { llOwnerSay( "Up"); counti = 1; llSetPrimitiveParams([PRIM_POSITION,endPosition]); } else { llOwnerSay( "Down"); counti = 0; llSetPrimitiveParams([PRIM_POSITION,startPosition]); } } } It works fine if i rez it on Ground, but not as attachment. So, whats the Problem? Thank you VH1
×
×
  • Create New...