Question by
impurekind · Sep 21, 2018 at 04:16 PM ·
scripting problemscript.getcomponenttimeraccessing scripts
Why is the code below not setting the value for the timer?
timer = WeaponSelectionController.fireCoolDownTimeRightHand;
Note: fireCoolDownTimeRightHand is set as a public static variable in the WeaponSelectionController script
If I just use timer = 100;
in my script then everything works (I can use this but would like to know what it it is I'm not understanding about grabbing a value from another script), but when I try to grab the value from my other script using the code above, it doesn't seem to do anything in terms of setting the value I want.
Do I need to use some kind of "get" command above to make the code work properly? And if so, what am I supposed to use to get that correct fireCoolDownTimeRightHand value from my other script?
Comment