mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-15 06:53:59 +01:00
15 lines
388 B
Plaintext
15 lines
388 B
Plaintext
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) {
|
|
var _sten = getInputData(5);
|
|
|
|
if(random(1) < str * _sten)
|
|
part.kill();
|
|
}
|
|
} |