minekip Posted January 20, 2013 Share Posted January 20, 2013 Hi guys, I wonder what's wrong with my script... It seems that something's wrong with me so I'm doing stupid things the whole day!Problem is: I have the function that runs OnPlayerLoadGame. Function SetCarryWeight() Actor ak = Game.GetPlayer() float icw = ak.GetAV("CarryWeight") CarryWeight_Storage.SetValue(icw) float cw = icw - CarryWeight_Delta.GetValueInt() float cwMax = CarryWeight_Limit.GetValueInt() if cw > cwMax cw = cwMax endIf ak.SetAV("CarryWeight", cw) endFunction And somehow ingame I have CarryWeight set not to cw (if it supposed to be, for example, 125, when Limit is 150), but to cwMax! What's wrong?? Link to comment Share on other sites More sharing options...
minekip Posted January 21, 2013 Author Share Posted January 21, 2013 really need help in my code, still cannot notice a mistake, so bumping... Link to comment Share on other sites More sharing options...
tyrannynexus Posted January 21, 2013 Share Posted January 21, 2013 you should take this over to the creation kit official forums, there's some amazing scripting guru's over there. Link to comment Share on other sites More sharing options...
Recommended Posts