Difference between revisions of "LUA:SetMaxPowerBase"

(Created page with "= LUA Functions: SetMaxPowerBase() = Sets the base max power of the given spawn to the given amount ==== Syntax ==== SetMaxPowerBase(param1, param2) ==== Parameters ==== ; Re...")
 
 
Line 10: Line 10:
 
; Required - ''param1'' (Spawn), ''param2'' (sint32)
 
; Required - ''param1'' (Spawn), ''param2'' (sint32)
 
: ''param1'' is the spawn we want to modify
 
: ''param1'' is the spawn we want to modify
: '' param2'' is the value we want to set the base max power to
+
: ''param2'' is the value we want to set the base max power to
  
  

Latest revision as of 11:58, 12 September 2013

LUA Functions: SetMaxPowerBase()

Sets the base max power of the given spawn to the given amount


Syntax

SetMaxPowerBase(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn we want to modify
param2 is the value we want to set the base max power to


Usage

function spawn(Spawn)
    SetMaxPowerBase(Spawn, 1000)
end

When this NPC spawns its base max power will be set to 1000