Difference between revisions of "LUA:GetFactionID"
(Created page with "{{LUAFunction |Name = GetFactionID |Description = Gets the faction id of a spawn |Param1 = Spawn |Param1Desc = is the spawn we want to add a title to. |Example = <pre> functio...") |
(No difference)
|
Latest revision as of 10:51, 19 June 2022
LUA:AllFunctions - GetFactionID
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Gets the faction id of a spawn
Syntax
GetFactionID(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to add a title to.
Example
function hailed(NPC, Player) GetFactionID(Player) end
An NPC with this script will get the faction id of the player.
Notes
Can be used on a player or a NPC