Log in to reply
 

Ontick problem with applyforce



  • When i use
    Game.IsControlJustPressed(2,GTA.Control.Sprint)
    {
    character.applyforce(character.UpVector * 10)
    }
    If i set game to 60 or 30fps applies a right force, but if i set game over 60, for example to 80fps, the force applies is very low, how i can do for bypass this problem, thanks to all.
    Lowest is the framerate, more is the force applied
    I set interval to 0.
    I know that scripthook work every frame, and for example if i want a value of 100 for second, i have to do 100 * Game.LastFrameTime, but i need only applyforce for a single frame.



  • @Ironia_Official 80fps is an example, more is highter the fps, more the force is lower.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.