Negative force

how i apply negative force to push my ped backwards?

ApplyForceToEntity(GetPlayerPed(-1), 1, -100.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, false, true, true, true, true) ???

I may be wrong but I believe arguments 6, 7, and 8 are the rotation of the force.

APPLY_FORCE_TO_ENTITY(Entity entity, int forceFlags, float x, float y, float z, float offsetX, float offsetY, float offsetZ, int boneIndex, BOOL isDirectionRel, BOOL ignoreUpVec, BOOL isAmountRel, BOOL p12, BOOL p13)

Try setting offsetZ to 180.

thank you i managed to do it by x -(x *10) and y -(y *10) seems messy but it works

ill try the offset like you said

Possibly if that works you may just need to put the negative in brackets.

ApplyForceToEntity(GetPlayerPed(-1), 1, (-100.0), 0.0, 0.0, 0.0, 0.0, 0.0, 1, false, true, true, true, true)

Please use PlayerPedId() its much cleaner instead of using GetPlayerPed unnecessarily

1 Like

thanks guys also 1 more

ApplyForceToEntity(GetPlayerPed(-1), 1, (-100.0), 0.0, 0.0, 0.0, 0.0, 0.0, 1, false, true, true, true, true)

the forceflag what variations does it have and what do they do

This is what the different forceflags are.

0: weak force
1: strong force
2: same as 0 (2nd bit?)
3: same as 1
4: weak momentum
5: strong momentum
6: same as 4
7: same as 5

yeah read that dont fully understand what that means to be honest

cane one one tell me what is the best result to apply an insane amount of forward force - ive multiplied the x and y cords by 1000 by dosnt seem to go any faster?