So I'm trying to make an effect that adds a keyword to any weapons and armor added to the player's inventory while its active. Here it is:
Scriptname MyScript extends activemagiceffect
Keyword Property SpecialKeyword Auto
Event OnItemAdded(Form AkBaseItem, int aiItemCount, ObjectReference AkItemReference, ObjectReference AkSourceContainer)
If(AkBaseItem As Weapon)||(AkBaseItem As Armor)
When I try to compile it I get:
"AddKeyword is not a function or does not exist"
AkItemReference is an ObjectReference, so shouldn't it work fine? or am I missing something obvious?
I don't really want to have to use an alias to do this
Does anyone know what's going on? Any help would be appreciated.
Edited by HeirOfTheSeptems, 09 August 2020 - 03:52 PM.