Skip to content

event onTakeFocus (client-side)

Note

In case when user changed focus to a new target, firstly event onLostFocus is called.

This event is triggered when hero focuses object like player, npc or vob.

Parameters

int type, int id, string name
  • int type: the type of currently focused vob. For more information see Vob types.
  • int id: the id of currently focused vob. If focused target is not player or npc this value is -1.
  • string name: focused target displayed name.