11.07.2012, 16:36
1) That code would do nothing but heal the player.
2) The posted is asking if you can damage the player if the car crashes or runs into an object, like in GTA IV.
My opinion on this is, I don't actually think there's a code to detect if a car has hit an object, the only thing I can think of is using GetVehicleHealth and SetPlayerHealth.
2) The posted is asking if you can damage the player if the car crashes or runs into an object, like in GTA IV.
My opinion on this is, I don't actually think there's a code to detect if a car has hit an object, the only thing I can think of is using GetVehicleHealth and SetPlayerHealth.