You are viewing an old version of this page. Return to the latest version.
Version of 21:00, 10 February 2021 by Vlash Nytefall
Difference between revisions of "LUA:AddCharacterTitle"
(Created page with "{{LUAFunction |Name = AddCharacterTitle |Description = Adds a character title to a spawn if not already present |Param1 = Spawn |Param1Desc = is the spawn we want to add a ti...") |
|||
| Line 9: | Line 9: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | AddCharacterTitle(Spawn, Orc Killer) | + | AddCharacterTitle(Spawn, "Orc Killer") |
end | end | ||
</pre> | </pre> | ||
Revision as of 23:22, 10 February 2021
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