Cloughy 0 Posted September 30, 2014 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
Tajin 349 Posted September 30, 2014 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
rtek 10 Posted October 5, 2014 I tried that, all it said was <null> when I shot the tank. Share this post Link to post Share on other sites
theregurgitator 10 Posted October 6, 2014 Alternatively, getHit might work: waitUntil(_vehicle getHit "fuel" > .3); //or whatever hit value you want, from 0-1 https://community.bistudio.com/wiki/getHit Share this post Link to post Share on other sites
Cloughy 0 Posted October 9, 2014 Alternatively, getHit might work: waitUntil(_vehicle getHit "fuel" > .3); //or whatever hit value you want, from 0-1 https://community.bistudio.com/wiki/getHit Will have to wait till 1.31 is the 'Live' release and not on Dev. Cheers GC Share this post Link to post Share on other sites
Cloughy 0 Posted October 14, 2014 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
Tajin 349 Posted October 14, 2014 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
Cloughy 0 Posted October 16, 2014 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
das attorney 858 Posted October 16, 2014 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
Cloughy 0 Posted October 20, 2014 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
das attorney 858 Posted October 20, 2014 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
Cloughy 0 Posted October 21, 2014 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
Cloughy 0 Posted February 24, 2015 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
epicgoldenwarrior 11 Posted February 24, 2015 this addEventHandler ["hit", this setDamage 1]; Lol too much? Share this post Link to post Share on other sites
jshock 513 Posted February 24, 2015 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
epicgoldenwarrior 11 Posted February 24, 2015 Ik, like I said too mich. ---------- Post added at 19:36 ---------- Previous post was at 19:31 ---------- Ik, like I said too much :P *throws rock* Share this post Link to post Share on other sites
Cloughy 0 Posted March 2, 2015 '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
Cloughy 0 Posted April 21, 2015 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
epicgoldenwarrior 11 Posted April 22, 2015 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
Cloughy 0 Posted April 23, 2015 attach an invisible box to the tank areaEH 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