Want to add a script or a project? Upload it and a half million people will see it and your name here this year.
![]() |
![]() |
||
---|---|---|---|
Category: | Contributor: | Creator | |
Clothing | Gwyneth Llewelyn | Flexi_Skirt_Changer |
Category: Clothing
By : Gwyneth Llewelyn
Created: 2010-07-18 Edited: 2010-07-18
Worlds: Second Life
Browse the Zip file
123 list FlexiState;45 integer isSit;6789 default1011 {1213 state_entry()1415 {1617 // save current state1819 FlexiState = llGetPrimitiveParams([PRIM_FLEXIBLE]);2021 }2223242627 {2829 // if someone is tweaking the flexi settings, you better reset!3031 if(what & CHANGED_SHAPE)3233 llResetScript();3435 }36373839 touch_start(integer total_number)4041 {424445 if(!isSit)4647 {4849 isSit = TRUE;5051 llOwnerSay("Skirt in sit mode");52535455 // ok, we know the rotation. Now we need to figure out the bloody angle in the XY plane!5658596061 vector PointForward = <1.0, 0.0, 0.0>; // get a unit vector!62636465 PointForward *= avatarRotation; // do vector rotation6667 PointForward.z = 0.0; // clean Z as well, you never know; now this vector should be on the XY plane68697071 // amplify magnitude!72737475 PointForward.x *= 10.0;7677 PointForward.y *= 10.0;78798081 llSetLinkPrimitiveParams(LINK_SET, [PRIM_FLEXIBLE] + llListReplaceList(FlexiState, [PointForward], 6, 6));8283 }8485 else8687 {8889 isSit = FALSE;9091 llOwnerSay("Skirt in walk mode");9293949697 }9899 }100101 }
Back to the Best Free Tools in Second Life and OpenSim.