[SOLVED] Calling script prototype for specific entity

Hi, this may be a dumb question, so the entity has attached script TweenMove with:

TweenMove.prototype.reseter = function() {
console.log('Reseter');
};

Is it possible to activate prototype.reseter from other script, for specific entity (I have the right entity defined already in the other script)

Thanks

entity.script.tweenMove.reseter();

1 Like