Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

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. 

Share this post


Link to post
Share on other sites