GetAssociatedSkill - MagicEffect

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: MagicEffect Script

Obtains the skill that this magic effect is associated with.

Syntax[edit | edit source]

string Function GetAssociatedSkill() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The name of the skill the effect is associated with. Actor Value List

Examples[edit | edit source]

; Is the MagicEffect in the school of Destruction?
if (effect.GetAssociatedSkill() == "Destruction")
  Debug.Trace("Destruction effect!")
endIf

See Also[edit | edit source]