RageLeague Posted April 26, 2021 Share Posted April 26, 2021 The game doesn't like it when the parameter for the random function is negative. Is this intended or not? Link to comment Share on other sites More sharing options...
Developer rooks Posted April 26, 2021 Developer Share Posted April 26, 2021 Can you give an example? Do you mean the math.random function which is built into lua? Link to comment Share on other sites More sharing options...
RageLeague Posted April 26, 2021 Author Share Posted April 26, 2021 Yeah, but specifically the one I used in Agent:CalculateProperty parameter, which at that point, would be temporarily replaced with an instance of engine.Random. Not sure whether that would come into play or not. Link to comment Share on other sites More sharing options...
Developer rooks Posted April 26, 2021 Developer Share Posted April 26, 2021 Ah, interesting. Yes engine.Random seems to use some unsigned values, causing it to behave differently than math.random for negative parameters. I will push a fix. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.