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