Posted By: Carlos3DGS
vec_set() syntax error... Can you spot it? - 01/07/12 14:51
can anyone spot what is wrong with the following vec_set() instruction?:
-added parenthesis around "random(500) -250" but that didn't fix it.
-substituted "vec_n" for "vec_n.x" but that didn't fix it either.
I get a "sytax error" for that vec_set instruction
I have avoided the problem subtituting the "vec_set" instrucion with this:
But I am still curious why that instrucion gave a syntax error...
Can any of you experts spot it?
Code:
VECTOR vec_n; vec_set(vec_n, vector(random(500) -250, random(500) -250, random(500) -250);
-added parenthesis around "random(500) -250" but that didn't fix it.
-substituted "vec_n" for "vec_n.x" but that didn't fix it either.
I get a "sytax error" for that vec_set instruction
I have avoided the problem subtituting the "vec_set" instrucion with this:
Code:
vec_n.x=random(500) -250; vec_n.y=random(500) -250; vec_n.z=random(500) -250;
But I am still curious why that instrucion gave a syntax error...
Can any of you experts spot it?