SetPlayerMana

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

The function sets the hero or npc mana points.

Syntax

void setPlayerMana(int id, int mana)

Required Arguments

  • id: The id of the npc or hero.
  • mana: The points mana.

Example

addEventHandler("onInit",function()
{
     setPlayerMana(heroId, 1000) // the function sets 1000 mana points.
});