ToastedWARFACE 0 Posted December 18, 2019 Hi, obligatory "I'm new to scripting". I've been trying to use the command getHit on a triggers Condition box to check the repair state of a vehicle but can't figure it out and can't get any search results that really help. Anyone willing to help me out? Share this post Link to post Share on other sites
Vandeanson 1676 Posted December 18, 2019 Yes! And welcome to the rabbithole But i need every line of code you used and the context:) Also describe the trigger settings and how it is linked to your vehicle. Cheers Vd 1 Share this post Link to post Share on other sites
ToastedWARFACE 0 Posted December 19, 2019 Haha, thanks, love it already! I've got a vehicle namned vehicle_start, when it hits a trigger, it has a set damage module that kills the engine. So I've written into its initilazation:if ((Vehicle_Start getHit "engine") < 0.5) == REPAIRSTATE; But I can't find an answer to what kind of number getHit outputs, if it's in whole numbers or if it's a decimal like I've assumed.. REPAIRSTATE is then used by a trigger to determine if vehicle_start has been repaired after the first set damage module has activated. All triggers are set to the vehicle, non-repeatable (nothing special). Thanks in advance! Share this post Link to post Share on other sites
killzone_kid 1326 Posted December 19, 2019 36 minutes ago, ToastedWARFACE said: if ((Vehicle_Start getHit "engine") < 0.5) == REPAIRSTATE; This is not a valid sqf, the pages you need to look at:https://community.bistudio.com/wiki/ifhttps://community.bistudio.com/wiki/thenhttps://community.bistudio.com/wiki/a_%3D%3D_b Share this post Link to post Share on other sites