No categories assigned

LUA:AddCharacterTitle

Revision as of 22:22, 10 February 2021 by Cynnar (talk | contribs)


LUA:AllFunctions - AddCharacterTitle

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


Adds a character title to a spawn if not already present

Syntax

AddCharacterTitle(param1, param2)

Parameters

Required - param1 (Spawn), param2 (string)
param1 is the spawn we want to add a title to.
param2 is the title we want to give the spawn.


Example

function hailed(NPC, Spawn)
	AddCharacterTitle(Spawn, "Orc Killer")
end

An NPC with this script will give the player the title of Orc Killer

Notes

Can be used on a player or a NPC