The Elder Scrolls V: Skyrim

The Elder Scrolls V: Skyrim

Find the best mods for your game
Finding and installing your favorite mods is easier than ever before. Mod-makers also enjoy a streamlined process for uploading mods directly to Steam. Click here to learn how.
Stiven 6 Feb, 2023 @ 12:28pm
"GetAssociatedSkill is not a function or does not exist"
I have simple script:

Scriptname mytscript extends ActiveMagicEffect

import MagicEffect
import Actor

Spell property sSource auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

If (akSource.GetAssociatedSkill() == "Destruction")
;do stuff
Endif

EndEvent

But it refuses to compile. It saying ""GetAssociatedSkill is not a function or does not exist". Howto fix it?