top of page
  • Facebook
  • Twitter
  • Instagram

locking numbers numbers

float num = TScriptUt.LockPositiveFloat(num);

float num = TScriptUt.LockPositiveInt(num);

float num = TScriptUt.LockNegativeFloat(num);

float num = TScriptUt.LockNegativeInt(num);

This is a feature that can lock a number to a positive or negative number. To apply it you need to send the starting number (num) and then it should work. Another point to note is that you NEED to specify whether it is a float or int. There will likely be a feature of clamp negative and positive without needing to specify int or float. 

bottom of page