|
|
Hello,
In a macro when I have a parameter of type vector and pass its value as
such, I get an error:
abs(x - Position.x)
But if I do this it works:
#local positionX = Position.x;
abs(x - positionX)
Why is this, and is there a way to do what I want to do?
While abs is not a vector function the component part x is a float, right?
So it seems like it should take it.
It seems like there is either a parsing oversight, or that the axis values
are not internally scalars, and as thus the local variable results in a
cast or something that allows it to work.
In the case of my macro the way I want to do this is cleaner than the other
way in my opinion, as I an trying to cut down on the number of parameters
in my macro and keep the local variables to a minimum.
Thanks,
Ian
Post a reply to this message
|
|