No categories assigned

LUA:AddIconValue

Revision as of 10:57, 19 June 2022 by Cynnar (talk | contribs) (Created page with "{{LUAFunction |Name = AddIconValue |Description = Adds the icon value. |Param1 = Spawn |Param1Desc = is the spawn we want to add to. |Param2 = sint32 |Param2Desc = is the icon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - AddIconValue

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


Adds the icon value.

Syntax

AddIconValue(param1, param2)

Parameters

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


Example

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

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