No categories assigned

LUA:GetFactionID

Revision as of 10:51, 19 June 2022 by Cynnar (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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