No categories assigned

LUA:GetFactionID


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