ProgMath2 Posted November 26, 2015 Share Posted November 26, 2015 (edited) 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 shortAnd 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? UPDATEI've noticed that GetArrayVar is working, so i can exchange an array of one element. But what's a deal with GetRefVariable? Edited November 26, 2015 by ProgMath2 Link to comment Share on other sites More sharing options...
QQuix Posted November 26, 2015 Share Posted November 26, 2015 Confirmed. GetRefVariable is not working. It seems GetArrayVar is the way to go. Link to comment Share on other sites More sharing options...
Recommended Posts