Sign in to follow this  
Giano

Trying to change walking speed in Volcano

Recommended Posts

Giano    1

Hello everyone!

Since i hate cheating, i feel that the bug causing super speed in the Volcano after approaching it with a fast boat should be gone.

Is there anyone who can point me to how to write a function that reset the walking speed after entering the Volcano?

I tried a function with:

local function resetspeed(self)

    if GLOBAL.GetWorld():IsVolcano() then
    
    self.components.locomotor.runspeed=1
    self.components.locomotor.walkspeed=1    
    end
end

How exactly am i supposed to do? Sorry i'm totally new at coding. Any help is highly appreciated.

Thanks

 

Share this post


Link to post
Share on other sites
Giano    1

Ok i solved this. Added 3 line of codes in the locomotor. The volcano speed bug is gone. 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this