Difference between revisions of "LUA:RemoveProc"
(Created page with "= LUA Functions: RemoveProc() = Removes a proc from the given entity ==== Syntax ==== RemoveProc(param1, [param2]) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''para...") |
(No difference)
|
Latest revision as of 18:00, 26 November 2013
LUA Functions: RemoveProc()
Removes a proc from the given entity
Syntax
RemoveProc(param1, [param2])
Parameters
- Required - param1 (Spawn), param2 (int8), param3 (float)
- param1 is the entity who we will be removing a proc from
- Optional - param4 (Item)
- param2 is the item that added the proc
Usage
function unequipped(Item, Player)
RemoveProc(Player, Item)
end
When an item with this script is unequipped it will remove all procs that it had added to the player
Notes
This can only be used on an Entity
This function can only be used in an item or spell script, if used in an item script then the item param must be set