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|nullcurrentId: the id of currently focused player or npc. It can benullwhen hero lost focus or focused other object than player or npc.int|nullpreviousId: the id of previously focused player or npc. It can benullif previous focus target wasn't set or was not a player or npc.