You must provide arguments to functions. This function requires exactly three arguments, e.g.
This does not work:
a = spat( Ball.Position, Effector1.Position );
The spat function needs three arguments:
a = spat( Ball.Position, Effector1.Position, Effector2.Position );