779 B
779 B
Function: ChangeHandIcon(spawn, displayHandIcon)
Description:
Changes the hand icon of the Spawn when Player's hover over the Spawn in 3d space.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.displayHandIcon
(uint8) - Integer valuedisplayHandIcon
.
Returns: None.
Example:
-- From Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua
function CurrentStep(Quest, QuestGiver, Player)
if GetQuestStepProgress(Player, 524,2) == 0 and GetQuestStep(Player, 524) == 2 then
i = 1
spawns = GetSpawnListBySpawnID(Player, 270010)
repeat
spawn = GetSpawnFromList(spawns, i-1)
if spawn then
ChangeHandIcon(spawn, 1)
AddPrimaryEntityCommand(nil, spawn)
SpawnSet(NPC, "targetable", 1, true, true)
end