Game Development Community

Does addNode() accept variables or just numbers?

by Glenn Thomas · in Torque Developer Network · 06/30/2010 (10:25 pm) · 2 replies

I'd like to do something like this.
%newPath.addNode("%xPoint,%yPoint", 0);

#1
07/01/2010 (4:08 pm)
You don't need the quotes around the variables:

%newPath.addNode(%xPoint @ "," @ %yPoint, 0);
#2
07/03/2010 (10:41 am)
Hey Chris, thank you for the help! I ended up doing this:
%newPath.addNode(%xPoint SPC %yPoint, 0);