Unable to pass a number variable as an INTEGER argument to a customer block


In the block below, everything works fine if the “car front” variable is replaced by hardcoded number like “2”. If I enter assign “2” or any number to the variable “car front” and then use it with my custom green block, the error happens.

How to pass a number that is an integer and equivalent to passing “2” or “1” hardcoded?

The error says that the number is a float when I think it needs an integer.


mblock variables are floats. I will try to make an extension for it.