SetPlayerMaxMana

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

The function sets the hero or npc max mana points.

Syntax

void setPlayerMaxMana(int id, int mana)

Required Arguments

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

Example

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