GetPlayerMaxMana

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

The function gets the hero or npc max mana points.

Syntax

int getPlayerMaxMana(int id)

Required Arguments

  • id: The id of the npc or hero.

Returns

  • current max mana value

Example

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

    print("U get "+getPlayerMaxMana(heroId)+ " max mana")
});