Jump to content

Vehicle properties for damage when running over a player


Adolf_T

Recommended Posts

Alright so I'm trying to make vehicles more deadly. When a player or bot get hit by a vehicle I don't want the vehicle to bounce away but the player to fall 100% of the times (just by a simple touch) and then in some realistic sense loose health depending on the collision force. What function would you recommend? Are any of these properties useful for my needs? I'm thinking of collisionDamageMultiplier and onVehicleCollission for instance, would those be a good approach? have anyone done anything like this before?

Link to comment

Tanks, it's almost perfect now, getElementSpeed helped a lot but I'm also using the mass. One last question tho, I'm using the event onClientVehicleCollision which sometimes triggers multiple times in a row, I can't block it's next execution with a simple timer or even by storing tick count in a variable, it still executes multiple times, any ideas how to solve that?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...