Function

onTag

(action: (obj: GameObj, tag: string) => void): KEventController

Register an event that runs when an object gains a tag.

param action- The function that runs when an object gains a tag.

param unknown- The tag which was added.

returns The event controller.

since v3001.1

group Events

kaplay logo

Layer

Miscalenous