peperonikiller

Death when crashing / running up hills

2 posts in this topic

So, with the default settings, people have just been getting slaughtered by bushes when driving vehicles.. Does anyone know how to reduce player damage taken when driving a vehicle??

I googled a bit, found something like this:

this addeventhandler ["handledamage",{ player setdamage ((damage player) /1.015)}];

but I know it needs to only work if player is in vehicle.

Don't know the correct formatting but maybe something like:

 

while {true} do
{
	if(alive player and IN_VEHICLE) then 
	{
		if(damage player < 0.7) then
		{
			player setDamage ((damage player) - 0.02);
hint format ["Debug: Health: %1",damage player];
			sleep 5;
		};
	};
};

Or another way would be to call

EpeContactStart

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#EpeContact

Edited by peperonikiller

Share this post


Link to post
Share on other sites

Unfortunately this is just an arma bug. Try driving fast into the really long grass on Tanoa; you'll probably die. But drive slowly into it and you can then drive through it at full speed. lol

#justarmathings ;)

Share this post


Link to post
Share on other sites
Advertisement

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.