Thank you !
I will studay later.
And I found a problem in self function plugin:
1.Put one object in 2 family;
2.Give both family a self function;
3.Make a family1 self function;
4.In this function call family2 self function;
Now Construct come to and infinity loop, because it kepp calling the same function of family1.
And I put a c3p file here : https://expirebox.com/download/348fcbcabc490f6044b91b4e51b7499c.html
I have 2 solutions planned.
One is the hard way but it doesn't involve asking Construct Team for help with a possible SDK issue.
Another is the easy way but it involves asking the Construct Team for help to address a possible SDK issue.
I chose the hard way, but I got into an issue. So, I re-considered the easy way, asking the Construct Team to address a possible SDK issue.
Reference:
github.com/Scirra/Construct-3-bugs/issues/1797
What was the hard way?
The hard way is by making the addon work more like the Function Plugin, so that it works globally on the object.
The problem is that, it doesn't loop through all the instances, which is supposed to be main feature of the Self_Function behavior.
So, there will be a trade-off.
Unless I ask the Construct Team to address a possible SDK issue, to dis-allow adding multiple behaviors, which is supposed to be by-design but is still possible by adding Add-Only-Once Behaviors on families.
Which I already asked them on the link.
But I will still keep looking up, if I can find a way to support multiple Self Function Behaviors.