Greetings all,
Well, I have a problem that I can't seem to find a solution for. I have a script attached to an armor which contains a function.
Looks something like this:
Scriptname this_armors extends ObjectReferenceArmor Property thisProperty Autofunction armorFunction() ;does somethingendFunction
Then I have a quest script which looks something like this.
Scriptname this_player extends ReferenceAliasActor Property PlayerRef AutoEvent ******() Armor Slot52Valid = PlayerREF.GetWornForm(0x00400000) as Armor if (Slot52Valid) ;How do I call function armorFunction() from script attached to Slot52Valid endIfEndEvent
The armor has a script attached to it with a function that has unique properties. Each armor that uses this script has something different assigned to the properties. I need to know how to execute the function of the script attached to the armor on the armor property Slot52Valid. Can't seem to figure that out and I couldn't find any posts on how it could be done. There was one website talking about accessing external functions using GetLinkedRef() but I don't see how that could work with this. Also, the script attached to the armor needs to stay attached to the armor and can't be placed inside of another quest. That is something I am trying to avoid.
In any other scripting language such as Unity Script, etc, This is simple easy to do so it must be possible in Skyrim papyrus but I can't figure it out.
Any help would be appreciated.
Best Regards,
Nightasy