Difference between revisions of "LUA:AddCharacterTitle"

m (Edited for simplicity)
 
Line 3: Line 3:
 
|Description = Adds a character title to a spawn if not already present
 
|Description = Adds a character title to a spawn if not already present
 
|Param1 = Spawn
 
|Param1 = Spawn
|Param1Desc = is the spawn we want to add a title to.
+
|Param1Desc = is the spawn we want to add a title to.
 
|Param2 = string
 
|Param2 = string
 
|Param2Desc = is the title we want to give the spawn.
 
|Param2Desc = is the title we want to give the spawn.

Latest revision as of 10:51, 19 June 2022


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, Player)
	AddCharacterTitle(Player, "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