Something went wrong. Try again later
    Follow

    The Elder Scrolls V: Skyrim

    Game » consists of 30 releases. Released Nov 11, 2011

    The fifth installment in Bethesda's Elder Scrolls franchise is set in the eponymous province of Skyrim, where the ancient threat of dragons, led by the sinister Alduin, is rising again to threaten all mortal races. Only the player, as the prophesied hero the Dovahkiin, can save the world from destruction.

    Creation Kit - Papyrus: Object Reference and Actor questions!

    Avatar image for bollard
    Bollard

    8298

    Forum Posts

    118

    Wiki Points

    0

    Followers

    Reviews: 3

    User Lists: 12

    #1  Edited By Bollard

    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.

    This edit will also create new pages on Giant Bomb for:

    Beware, you are proposing to add brand new pages to the wiki along with your edits. Make sure this is what you intended. This will likely increase the time it takes for your changes to go live.

    Comment and Save

    Until you earn 1000 points all your submissions need to be vetted by other Giant Bomb users. This process takes no more than a few hours and we'll send you an email once approved.