No categories assigned

LUA:RemoveIconValue

Revision as of 11:09, 19 June 2022 by Cynnar (talk | contribs) (Created page with "{{LUAFunction |Name = RemoveIconValue |Description = Remove the icon value. |Param1 = Spawn |Param1Desc = is the spawn we want to remove from. |Param2 = sint32 |Param2Desc = i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - RemoveIconValue

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Remove the icon value.

Syntax

RemoveIconValue(param1, param2)

Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn we want to remove from.
param2 is the icon id we want to remove.


Example

function hailed(NPC, Player)
	RemoveIconValue(Player, 1)
end

An NPC with this script will remove the icon value of 1