@JohnFromGWN yes i also made a custom animations for gta 5
But i didn't do this passage and it's worked
When i use
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.
Re: [[TUTORIAL | C#.NET] How to jump to Aim Positon?
Someone can tell me how to get ped jumping to Aim Position?
//get Aim Postion
Vector3 camPos = Function.Call<Vector3>(Hash.GET_GAMEPLAY_CAM_COORD);
Vector3 camRot = Function.Call<Vector3>(Hash.GET_GAMEPLAY_CAM_ROT);
float retz = camRot.Z * 0.0174532924F;
float retx = camRot.X * 0.0174532924F;
float absx = (float)Math.Abs(Math.Cos(retx));
Vector3 camStuff = new Vector3((float)Math.Sin(retz) * absx * -1, (float)Math.Cos(retz) * absx, (float)Math.Sin(retx));
RaycastResult ray = World.Raycast(camPos, camPos + camStuff * 1000, IntersectOptions.Everything);
This is the part of code to get aim position, but i would like to "jump"/move to this position, how can i do this?
@preto89 This is very helpful, however how i can jump to aim position?
How to pass from shake gameplay cam(FAMILY5_DRUG_TRIP_SHAKE) to normal gameplay camera? With STOP_GAMEPLAY_CAM_SHAKING i have like a skipped frame, how to have Smooth Transition?
Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.