Just wondering if it would be possible to be able to set Minimum and Maximum values for Dynamic Properties?
For example, I'd like to be able to restrict the values entered using the below values:
0 to 100
0 to 255
-1 to +1
0 to 1
etc.
If this is possible, then you could just add an extra couple of parameters to the setup code, where leaving a value blank means no minimum (or maximum):
- Code: Select all
--[[Prop|int|0|100]] ai_team = 1;
--[[Prop|float|0.1|]] ai_maxVelocityX = 10.00;
--[[Prop|float|1.0|2.0]] ai_runFactor = 1.50;
I know that I could do it through code, but I think that would restrict ways of providing the user with feedback if they select an incorrect value? I'd much rather stop them entering incorrect values in the first place.
Thanks
Shando