Pixel-Composer/scripts/node_VFX_destroy/node_VFX_destroy.gml
2024-12-25 10:52:25 +07:00

12 lines
No EOL
354 B
Text

function Node_VFX_Destroy(_x, _y, _group = noone) : Node_VFX_effector(_x, _y, _group) constructor {
name = "Destroy";
node_draw_icon = s_node_vfx_destroy;
inputs[4].setVisible(false, false);
inputs[6].setVisible(false, false);
inputs[7].setVisible(false, false);
function onAffect(part, str) {
if(random(1) < str * strength) part.kill();
}
}