JustChill Posted February 23, 2021 Share Posted February 23, 2021 Well I don't think that you can use an int / short / long, if you want to use "GetSecondsPassed" for example.It surely does matter how you define your variables. As using non-float variables for functions that require floats will give you a hard time. ^^ Link to comment Share on other sites More sharing options...
KatsAwful Posted February 23, 2021 Author Share Posted February 23, 2021 You can use integers for any function with a float result, it'll just get truncated. For GetSecondsPassed it should still function the same Link to comment Share on other sites More sharing options...
Pellape Posted February 24, 2021 Share Posted February 24, 2021 (edited) Its like the VB type Object, that can hold any form of data... :smile: The main reason for using different data types must still to make the code optimal. Otherwise there is no point, just use 32-bit or even 64-bit big variable holders... Edited February 24, 2021 by Pellape Link to comment Share on other sites More sharing options...
JustChill Posted February 24, 2021 Share Posted February 24, 2021 You can use integers for any function with a float result, it'll just get truncated. For GetSecondsPassed it should still function the sameIt definitely does not function the same, as the accuracy of the time evaluaton is gone because of the truncation.I've had this issue from time to time, until I realized that I used a wrong variable type regarding the stuff I wanted to do. ^^ "fQuestDelayTime" does either not work properly when using an integer. But I agree, you can use it. Link to comment Share on other sites More sharing options...
Recommended Posts