|
SirSticky Hornpipe
Registered User
Join date: 24 Jun 2005
Posts: 43
|
08-26-2006 10:59
is there a script or a way to make surfaces slippery , so ppl slip and slide like on ice ?
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
08-26-2006 12:27
you will have to fake it with an animation
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
08-26-2006 15:55
You could use push! Friction in SL is close enough to real friction that effectively reducing an avatar's mass will make them skid. This is easy to do in attachments with llSetForce, but it may be possibel to use lots of little pushes... integer PUSHFORCE = 1.0; //fiddle with this until the floor is slippery as you want default { state_entry() { llSensorRepeat("","",AGENT,PI,10,10); } sensor(integer n) { state pushing; } } state pushing { state_entry() { llSensorRepeat("","",AGENT,PI,10,0.1); } no_sensor() { state default; } sensor(integer n) { integer i; for(i = 0; i < n; i++) llApplyImpulse(<0,0,PUSHFORCE> * llGetObjectMass(llDetectedKey(i)), FALSE); } }
This will probably not work smoothly with more than 1 or 2 avs, you need to use multiple scripts like a dance ball does for more than experimentation. (tossed off without testing or even compiling, caveat scriptor)
|