Skip to content

function setPlayerTalent (client-side)

Available since version: 0.2

This function will toggle the player/npc talent.


void setPlayerTalent(int id, int talentId, bool toggle)


  • int id: the npc id.
  • int talentId: the talent id. For more information see Talent constants.
  • bool toggle: true if talent should be enabled for npc, otherwise false.