Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Avatar Jump Limits ?

Deriku Yedmore
Registered User
Join date: 3 Sep 2008
Posts: 2
09-10-2008 20:35
Hi all,

Been trying to find a way to limit the jump height of an avatar but have looked through the wiki and also this forum but have found no way to do it. If there's anyone who has done it, can you please guide me on how you do it ?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-10-2008 21:15
From: Deriku Yedmore
Hi all,

Been trying to find a way to limit the jump height of an avatar but have looked through the wiki and also this forum but have found no way to do it. If there's anyone who has done it, can you please guide me on how you do it ?

are you talking about an object that you have out that limits someone's jump, or an attachment they would wear?
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-10-2008 21:32
here's 2 scripts. the first one i got from a box of freebie scripts. it's super jump script. the second one is basically the same thing, but i applied negative force instead of positive force, that seems to reduce the jump height into half. (must be worn as an attachment)

From: someone

//Super Jump Script
default
{
attach(key avatar)
{
vector force = <0,0, llGetMass() * 6.2>;//Raise the multiple to raise the jump height
llSetForce(force, TRUE);
if(avatar==NULL_KEY)
{
llSetForce(<0,0,0>,TRUE);
}
}
}


From: someone

//Reduce Jump Script
default
{
attach(key avatar)
{
vector force = <0,0, -llGetMass() * 6.2>;/Raise the multiple to lower the jump height. i tried *50 and it seemed to almost stop the jump completely
llSetForce(force, TRUE);
if(avatar==NULL_KEY)
{
llSetForce(<0,0,0>,TRUE);
}
}
}


edit: added comments to the scripts, also to say this. if you're adjusting the number, you'll need to detach/reattach the object for it to work

edit again: also, if you use the super jump, if you start flying, it will make speed the rising power, but you will also keep rising for a little bit if you stop to hover
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Deriku Yedmore
Registered User
Join date: 3 Sep 2008
Posts: 2
09-14-2008 23:54
Thank you for the guides. Appreciate it very much.. shall test it out when I finish my current task