API SetActiveTalentGroup

Sets the active talent group of the player. This is the 5 second cast that occurs when clicking the Activate These Talents button in the talent pane.
 SetActiveTalentGroup(groupIndex);
==Arguments==
:;groupIndex: - Ranging from 1 to 2 (primary/secondary talent group). To get the current one use ()
==Notes==
*Nothing will happen if the groupIndex is the currently active talent group
==Examples==
The following line will toggle between the player's talent groups
 SetActiveTalentGroup(3 - GetActiveTalentGroup())