@JohnFromGWN yes i also made a custom animations for gta 5
But i didn't do this passage and it's worked
@JohnFromGWN yes i also made a custom animations for gta 5
@Beaterdukes why i have to do this? I put an animation and it work without this passage
i'm making a Bat-glider mod, if you have some suggestion tell me.
Now you can use grappling hook for gain speed and altitude and dive like Arkham games.
@Ironia_Official 80fps is an example, more is highter the fps, more the force is lower.
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.
Re: [[TUTORIAL | C#.NET] How to jump to Aim Positon?
(/topic/12470/tutorial-c-net-how-to-get-aim-positon-or-entity-raycasting-functions)
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));
//AimPostion Result
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?