Isolate second part of string (try two)
by Jacob Wagner · in Torque Game Builder · 07/28/2005 (5:01 pm) · 4 replies
I need to isolate the second part of a string. Specifically, I am calling
getLinearVelocityPolar() which returns angle/speed. I need to isolate the speed number and plug it into another function.
Also, if anyone knows where I can get more information on all the string related functions, let me know.
I did find the @ SPC etc. operators that were in the torquescript documentation.
getLinearVelocityPolar() which returns angle/speed. I need to isolate the speed number and plug it into another function.
Also, if anyone knows where I can get more information on all the string related functions, let me know.
I did find the @ SPC etc. operators that were in the torquescript documentation.
#2
07/28/2005 (5:23 pm)
Umm...%tmp = %obj.getLinearVelocityPolar(); %angle = getWord(%tmp,0); %speed = getWord(%tmp,1);
#3
07/30/2005 (9:28 am)
Thanks, guess that's even easier. Don't know what the 'umm' is for, I don't know where I'm supposed to find these undocumented functions. :)
#4
07/30/2005 (10:01 am)
GetWord() has been covered endlessly in just these forums alone. I know specifically I have brought it up at least 5 times in the last 4 months. It's also used in many, many, many of the demos, example tutorials, and general discussions in T2D.
Torque Owner Jacob Wagner
http://www.garagegames.com/mg/forums/result.thread.php?qt=29295
That totally answers my question, just put a "space" in the character slot. Guess I should look around a little more before I ask questions :(