Jump to content

GetRefVariable


ProgMath2

Recommended Posts

Have somebody used this function?

I have an inventory reference with two variables in it's script, both are initialized (tested before and after the script). In the other script I say:
ForEach rItem <- playerRef
if (rItem is the one i need)
let rTemp:= rItem.GetRefVariable rVictim ; this one is ref
let iTemp:= rItem.GetVariable iVictimLevel ; that is short

And when i try to use that values, rTemp occures to be bad, while iTemp is initialized and have a right value.
I tried to use rItem.GetVariable "rVictim", nothing changed. Tried to get ref with GetVariable. The same.

I can't just call EquipMe and work in item's script, because my item is a soulgem, and it calls recharge menu on equipping.

Any thoughts?

 

 

UPDATE

I've noticed that GetArrayVar is working, so i can exchange an array of one element. But what's a deal with GetRefVariable?

Edited by ProgMath2
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...