Function
(tag: Tag, action: (obj: GameObj, tag: string) => void): KEventController Register an event that runs when an object with the provided tag gains a tag.
param tag- The function that runs when the event happens.
onTag("elephant", (obj, tag) => {
debug.log(`A new tag ${tag} was added to the object ${obj.id}`);
});
returns The event controller.
since v3001.1
group Events