Hello
i have a Question. I have a Behavior and a Plugin and i want to call a function in the Behavior from the Plugin. Is this Possible ?
For example i got 3 Enemys with Behavior "Enemy". Now i want that the plugin is calling the Function "OnMove" of all 3 Enemys. How can i do that ?
This is my Function in the Behavior
behinstProto.OnMove = function (playerData)
{
this.runtime.trigger(cr.behaviors.Otherplayer.prototype.cnds.OnMove, this.inst);
};
so i want to call this by using in my Plugin
cr.behaviors.Otherplayer.OnMove(data)