Jump to content

Change walking speed


Suki Hirano
 Share

You are about to reply to a thread that has been inactive for 2345 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Does anyone know how to control walk speed without manually holding down some key like pgdown, or editing config files? If anyone's familiar with the RR cuff set one of the modes makes you walk at half speed, but I'm not sure how it does that. I'm sure it's through scripting at least. Maybe a way that forces the avatar to use "crouchwalk" instead of "walk" when arrow keys are pressed?

Link to comment
Share on other sites

try something like this in a hud in the control event....?

 

 if(level & CONTROL_FWD)
        {
            if(llGetAgentInfo(llGetOwner()) & AGENT_WALKING)
            {llApplyImpulse(<-1, 0, 0>,TRUE);}
        }

Link to comment
Share on other sites


Xiija wrote:

try something like this in a hud in the control event....?

 

 if(level & CONTROL_FWD)

        {

            if(llGetAgentInfo(llGetOwner()) & AGENT_WALKING)

            {llApplyImpulse(<-1, 0, 0>,TRUE);}

        }

It seems llApplyImpulse only works if you're walking forward. If you're walking backwards (technically you're still walking forwards except in opposite direction, ie towards the computer screen) it behaves really oddly, it'll force your character to like turn around or something. Not sure if it has to do with viewer settings? Also if I lightly tap a movement key, it'll still push avatar in the opposite direction by about a feet. But otherwise llApplyImpulse seems to achieve the effect I'm trying to achieve.

 


Ohjiro Watanabe wrote:

There is a menu option you could try. Devveloper/Avatar/Animation Speed. Alt + Ctrl + Q to display the developer menu if you don't see it.

 


 

That only causes all animations themselves to play slower, it has no effect on actual movement speed. Also I believe it's only client-side.

 

 

 

Link to comment
Share on other sites

Not sure if it's the best way of scripting, since I'm not that experienced with that, but I've made an object once to control avatar speed and it uses SetForce instead of ApplyImpulse.

You still take the forward and backward controls, but don't use the level. Instead it uses start and end (which are based on level, ~level and edge). Seems to work pretty well...

Link to comment
Share on other sites

  • 2 years later...

Hi Family 

Please i search a free java script for create self a small hud. 

I search from here to Honolulu and back ;-) 

I will create a hud only wear and have a super speed - run 

please have you a tip for my? 

Thank you for help

 

Edited by Rakis Heron
Link to comment
Share on other sites

 

Thank you for your incompetent teach Rolig Loon. I ask only friendly for a script not for so a coment.

Watch my profile my first ava is from 2003 now i will teach you lady.

No Java in SL? Painful teach no plan from SL?

All script in SL are in Java language! 

Spetial for you down it's a SL script in java language ;-)

 

//  RAKis - Rakis Heron lasst modify 02.26.2004
//  Copyright (c) 2003-2017 by RAK Internet Service
//
// Anti push script
integer locked;
float MTT_time = 0.2;
vector adjustment = <0,0,-0.001>;

default
{
    state_entry()
    {
    key owner = llGetOwner();
        llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
        llMoveToTarget(llGetPos() + adjustment, (MTT_time + 1.0));
        llSetTimerEvent(MTT_time);
        llListen(8,"",owner,"r");
    }   
    on_rez(integer start_param)
    {
        llResetScript();
    }
    run_time_permissions(integer perm)
    {
        if(perm & (PERMISSION_TAKE_CONTROLS))
        {
            llTakeControls(CONTROL_FWD|CONTROL_BACK|CONTROL_RIGHT|CONTROL_LEFT|CONTROL_UP|CONTROL_DOWN,TRUE,TRUE);
        }
    }
    control(key id, integer level, integer edge)
    {
        if (level)
        {
            llSetTimerEvent(0.0);
            llStopMoveToTarget();
        }
        else
        {
            llSetTimerEvent(MTT_time);
        }
    }  
    timer()
    {
        llMoveToTarget(llGetPos() + adjustment, (MTT_time));
    }
    listen( integer chan, string name, key id, string msg )
    {
        llResetScript();
    }
}
 

Link to comment
Share on other sites

3 minutes ago, Rakis Heron said:

All script in SL are in Java language! 

No, that script is written in Linden Scripting Language (LSL), not in javascript.  LSL is the only language that is allowed in SL.

Again, if you are looking for a script, ask in the Wanted forum. If you have written a script and are asking for help with it, just tell us what the problem is. Someone here will be glad to assist.

 

Link to comment
Share on other sites

You're right Madelaine but when my a member from 2009 teach it dont gives Java in SL 

i have a problem SL newbies read this also :-/ ok maybe i am in the wrong forum section 

with my ask sry :-( 

Have a nice SL... Rakis

Edited by Rakis Heron
  • Confused 1
Link to comment
Share on other sites

@Rakis Heron : You can read about LSL here: LSL Portal

However, if you insist that SL uses Java, then please create a class named Car, add methods for Start, Stop, Turn Left, Turn Right, etc., create an object of that type, and get it to compile.

LSL is roughly based on C. Java looks somewhat like C, but that doesn't make LSL Java.

 

  • Thanks 1
Link to comment
Share on other sites

So i don't hear a answer from all SL Profies ok the pic is Philip Rosedale the governor.linden September 01, 2002

inventor of SL sad is he give up the CEO and SL for build a new world VR Virtual Reality. A new dimension 

superlative avas creat a world not land and all in 360° and the new grid conect worlds. ;-)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2345 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...