{"name":"BIN_fnc_probeVeinHitpoint","title":"BIN fnc probeVeinHitpoint","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_probeVeinHitpoint","revid":379542,"updated":"2026-10-31T13:38:06Z","groups":["Probe"],"status":"ok","games":{"arma3":"1.94"},"since":"arma3 1.94","arma3_since":"1.94","exec":"spawn","description":"Reacts to a hit on a vein of the alien probe: the vein is retracted with BIN_fnc_probeAnim (retract sound, the looping sound fades out and is deleted), and after a delay it is expanded again (expand sound, a new looping sound is created).\nThe delay is 4 seconds by default and can be changed by setting the variable \"bin_probe_retractTime\" on the probe itself.\nThe function does nothing if the hit part index is -1.\n\nIts parameters match the Dammaged event handler, from which it is meant to be executed; no other Contact function calls it. As it uses sleep, it must run in a scheduled environment.\n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"[probe, selection, damage, hitIndex, hitPoint] spawn BIN_fnc_probeVeinHitpoint","params":[{"name":"probe","type":"Object","description":"the alien probe","type_expr":"Object"},{"name":"selection","type":"String","optional":true,"default":"\"\"","description":"name of the damaged selection; not used","type_expr":"String","text":"selection: String - (Optional, default \"\") name of the damaged selection; not used"},{"name":"damage","type":"Number","optional":true,"default":"0","description":"resulting damage; not used","type_expr":"Number","text":"damage: Number - (Optional, default 0) resulting damage; not used"},{"name":"hitIndex","type":"Number","optional":true,"default":"-1","description":"hit part index of the damaged hitpoint; the function exits if it is -1","type_expr":"Number","text":"hitIndex: Number - (Optional, default -1) hit part index of the damaged hitpoint; the function exits if it is -1"},{"name":"hitPoint","type":"String","optional":true,"default":"\"\"","description":"hitpoint name; not used","type_expr":"String","text":"hitPoint: String - (Optional, default \"\") hitpoint name; not used"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["myProbe setVariable [\"bin_probe_retractTime\", 10]; // keep the vein retracted for 10 seconds\nmyProbe addEventHandler [\"Dammaged\", { _this spawn BIN_fnc_probeVeinHitpoint }];"]}],"see_also":["BIN_fnc_probeAnim","BIN_fnc_probeHitpoint"]}