You are viewing an old version of this page. Return to the latest version.
Version of 11:53, 12 September 2013 by I need to Update My Profile
Difference between revisions of "LUA:SetMaxPower"
(Created page with "= LUA Functions: SetMaxPower() = Sets the max power of the given spawn to the given amount ==== Syntax ==== SetMaxPower(param1, param2) ==== Parameters ==== ; Required - ''pa...") |
|||
| (One intermediate revision by the same user not shown) | |||
| 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 max power to | + | : ''param2'' is the value we want to set max power to |
| Line 20: | Line 20: | ||
</pre> | </pre> | ||
| − | When this NPC spawns its max | + | When this NPC spawns its max power will be set to 1000 |
Latest revision as of 11:58, 12 September 2013
LUA Functions: SetMaxPower()
Sets the max power of the given spawn to the given amount
Syntax
SetMaxPower(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (sint32)
- param1 is the spawn we want to modify
- param2 is the value we want to set max power to
Usage
function spawn(Spawn)
SetMaxPower(Spawn, 1000)
end
When this NPC spawns its max power will be set to 1000