Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script to run faster

Veigrn Potato
www.veigrn.com
Join date: 26 Mar 2006
Posts: 8
04-09-2006 21:11
Anyone know if it's possible for a script to make you run faster? (given that you have already pressed ctrl+R and are on the ground)

I have scripted hoverskates that emit particles and stuff, and an animation pose for hoverskating, but I just need a speed adjustment without flying.
Ayrn Wake
Registered User
Join date: 7 Jan 2006
Posts: 39
04-10-2006 02:39
I'd like to know this too. My idea would to be to use small pushes in the direction you're facing as you use the controls, but I've tried a rough demo in practice and its not very effective.

I'm guessing that you could perhaps attach a prim to your feet and see if its colliding with anything (ie, detecting the floor) and change the way the push works on you do (to make sure you stay on the floor), but again, not sure on that.

I suppose the most certain way is actually making it a vehicle (phys or non phys), and change its properties depending on whether you're in the run state or not, but thats just awkward...
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
04-10-2006 08:06
It took me about 4 months of work, on and off, to get the flight boost in Cyberflight as smooth as it is. It uses dynamic feedback to gradually adjust the amount of impulse it's applying as the altitude (there's a "ground push" that varies based on both absolute altitude and on altitude above ground level) and the lagginess of the sim change the effectiveness of the push.

The same logic would apply here. Pick a speed you want to move at, and a "dead band" around that speed. While you've got the control down, gradually increase the impulse or force you're applying as you move until you're within the dead band. Experiment with the size of the dead band and the acceleration changes you use to get in the dead band. You might need to have more than one band... I've got about three now.

PS: All prims on your body are phantom, so it doesn't matter if they're on your feet, head, or pelvis.
Ayrn Wake
Registered User
Join date: 7 Jan 2006
Posts: 39
04-10-2006 12:31
Ahh yes, I forgot the way it phantoms the prims. I'm just speaking from my little test, that my applying push forces, there were a lot of incidents where you'd bounce off the ground, etc. The smaller the push the less noticable it is, but it still has its issues.


A temp fix btw, would be to hold the space bar (in run mode) whilest you move. Out of run mode, it tends to slow down movements, but in run mode, it just seems to give that little extra push, no scripting needed.