Rizalgar Posted January 2, 2019 Share Posted January 2, 2019 (edited) Ok, I'm wondering if I can call a Float from outside a Function/Event.I ask because my attempts so far have been futile. So maybe one of you guys know a way, or whether it's even possible. Edit 2 - I can post the actual script if prefered, it's not too long. Yet. Edit 3 - Removed the dumb example script and replaced it with my actual script. Sorry, I have yet to figure out how to hide content so the scripts not spamming on page load. Edit 4 - Ok, you CAN call from outside a function... However, it's not doing the multiplication part. I could use some advice as to why. Is there a max of one math function or something? Float MXP = AStrikeXP + Damage * XPMultiplier Is the bit in question Figured it out. For anyone who runs across a similar error, all I had to do was change the XPMultiplier from a Float to an Int. Easy sauce. Edited January 2, 2019 by Rizalgar Link to comment Share on other sites More sharing options...
NexusComa Posted January 3, 2019 Share Posted January 3, 2019 Damage as int possibly could use "as float" too or a combination of that Link to comment Share on other sites More sharing options...
Recommended Posts