event
onFocus (client-side)
Available since version: 0.0.2
This event is triggered when hero change focused player or npc.
Parameters
int|null currentId, int|null previousId
int|null
currentId: the id of currently focused player or npc. It can benull
when hero lost focus or focused other object than player or npc.int|null
previousId: the id of previously focused player or npc. It can benull
if previous focus target wasn't set or was not a player or npc.