Toggle chasing car from ramming player
-
I am currently able to spawn a car that chases and rams the players car using this code:
Function.Call(GTA.Native.Hash.TASK_VEHICLE_CHASE, chase_ped, Game.Player.Character);I want to temporarily stop the chasing car from ramming my player using an if statement.
I tried using
SetIdealPursuitDistance
and also lowering
SetDriverAggressiveness to 0.0
but the chasing car still rams the player.Any ideas ? Does a behavior flag exist that can be applied to a chasing vehicle to prevent it hitting the player car ?