Skip to content

GetActorSkill

The level SetActorSkill gave one of an actor’s skills.

GetActorSkill(id, skill)
Parameter Type
id number the actor
skill string the skill’s name

number | nil - the level; nil when the mode never set it

local level = GetActorSkill(id, "defense") or 0

SetActorSkill · the NPC actors group of the index