Please help me out here guys, I think I'm going insane.
Right, so I'm trying to write a script for something to happen upon a magic effect starting. I've been looking at Wabbajack's script which is vaguely similar, and am using the following event:
EVENT onEffectStart(Actor akTarget, Actor akCaster)
Now, that's great and all if I want to manipulate the target Actor using those functions, but actually I want to use a function that belongs to the OBJECTREFERENCE "script". (setScale in particular).
Actor extends of ObjectReference, so am I right in thinking all actors have an ObjectReference value? And if so, how am I supposed to get this value out to store as a variable? Ultimately I'm trying to do something like this:
akObject.setscale(0.1)
Where akObject is the ObjectReference of that particular actor. Any ideas guys?
---------------------------------
EDIT: Typically I worked it out as soon as I posted this thread. Apparently when they say a script is an extension of another script, it means its much like a class inheriting another class in OO programming. So, if I were to actually have just written this:
akTarget.setscale(0.1)
It would have worked all along.
Might as well lock this up mods.
Log in to comment