@name Target Multi Assassin
@inputs A B C D Self Active
@outputs X Y Z Fire Channel
@persist Self X Y Z
interval(50)
Mod = 1/2

if (Self==1) {
T = A
Channel = -201} elseif
(Self==2) {
T = B
Channel = -201} elseif

(Self==3) {
T = C
Channel = -201} elseif
(Self==4) {
T = D
Channel = -201}

Off = entity(T):height()
X = entity(T):pos():x()
Y = entity(T):pos():y()
Z = entity(T):pos():z() + (Off * Mod) 


if (Self == 0) {X = 0, Y = 0, Z = 0}
if (Active & (X + Y +Z)!=0) {Fire = 1} else {Fire = 0}
