Jump to content
Sign in to follow this  
Cloughy

CSAT Fuel Truck hit in fuel tank = explode

Recommended Posts

Just wondering what the hit points are on a CSAT Tempest Fuel truck are?

I want it to blow when the fuel tanks is hit a few times.

Cheers

GC

Share this post


Link to post
Share on other sites

this addEventHandler["hitPart", { hint format["%1",_this select 5]; }];

Add this to the init of your truck, shoot the part you need, write down the selection-name.

Should be simple enough.

Share this post


Link to post
Share on other sites

I tried that, all it said was <null> when I shot the tank.

Share this post


Link to post
Share on other sites
Alternatively, getHit might work:

waitUntil(_vehicle getHit "fuel" > .3); //or whatever hit value you want, from 0-1

https://community.bistudio.com/wiki/getHit

Doesn't seem to work with "fuel" at least. Any ideas what the section would be for a tempest Fuel Support Truck rear fuel tank?

Cheers

GC

Share this post


Link to post
Share on other sites

Oh right. "Hint" won't work, as the eventhandler fires several times for each hit. So try it again, with this:

this addEventHandler["hitPart", { systemChat format["%1",_this select 5]; }]; 

Share this post


Link to post
Share on other sites
Oh right. "Hint" won't work, as the eventhandler fires several times for each hit. So try it again, with this:

this addEventHandler["hitPart", { systemChat format["%1",_this select 5]; }]; 

This didn't work either. Just kept saying null.

Even when I just tried _this (without the select x) the string that came back didn't mention the hitpart, just who shot it and with what ammo and the path of the material it shot.

Cheers

GC

Share this post


Link to post
Share on other sites
Just wondering what the hit points are on a CSAT Tempest Fuel truck are?

I want it to blow when the fuel tanks is hit a few times.

Cheers

GC

The hitpoints are in the config viewer under Class >> hitpoints, so for Tempest it would be:

configfile >> "CfgVehicles" >> "O_Truck_03_fuel_F" >> "HitPoints" >> "HitFuel"

That's if the tempest is truck number 3 (I can't remember).

You can use:

myTruck getHitPointDamage "HitFuel"; to find out current damage.

Share this post


Link to post
Share on other sites
The hitpoints are in the config viewer under Class >> hitpoints, so for Tempest it would be:

configfile >> "CfgVehicles" >> "O_Truck_03_fuel_F" >> "HitPoints" >> "HitFuel"

That's if the tempest is truck number 3 (I can't remember).

You can use:

myTruck getHitPointDamage "HitFuel"; to find out current damage.

Looks like its something to do with "HitBody" not hit "HitFuel".

The damage of the fuel is always 0, but body seems to take a reading from a bullet hit.

Will continue testing tomorrow.

Cheers

GC

Share this post


Link to post
Share on other sites

You'll need to hit it in the fuel tank in that case - when I shoot them they register hits in all sorts of locations.

Set up a damage EH and if damage to the fuel tank is greater than say 0.5, then setdamage 1 to the truck. That should take care of your original request.

Share this post


Link to post
Share on other sites

got it working,

Put this in the trigger activation, then you can either setdamage or create a bomb at the pos of the truck.

truck1 getHitPointDamage "HitBody" > 0.01

Cheers

GC

Share this post


Link to post
Share on other sites

Looks like "HitBody" no longer works since latest patch.

Will try "HitFuel" later.

Cheers

GC

Share this post


Link to post
Share on other sites
this addEventHandler ["hit", this setDamage 1];

Lol too much?

Too much of not what he wants, that could very easily mean a 9mm round that hits the truck anywhere will blow it up, that doesn't seem useful to me, but that's just one man's opinion.

Share this post


Link to post
Share on other sites

'HitFuel' doesn't work either.

Once again, BIS broke something with a patch.

Cheers

GC

Share this post


Link to post
Share on other sites

Does anyone know how to get this working again. The latest patch still hasn't fixed it.

Cheers

GC

Share this post


Link to post
Share on other sites

attach an invisible box to the tank area

EH HIT setdamage 1

BAM another one of my workarounds.

Make sure to SEE where it is before making it invisible (hideobject true) duh

Share this post


Link to post
Share on other sites
attach an invisible box to the tank area

EH HIT setdamage 1

BAM another one of my workarounds.

Make sure to SEE where it is before making it invisible (hideobject true) duh

Where do I get these invisible boxes from?

Cheers

GC

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×