Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → 1 idea on ParseArg
1 idea on ParseArg
2001-08-14, 2:45 PM #1
I just thought of this while answering another post but this may be really useful if it works.

ParseArg seems not to accept variable on the second parenthesis, so you had to manually enter numbers even that is relative to another element of the cog variable.

old :
ParseArg(player, "eyeoffset='0 1 0.37'");

But how about concatenating the strings using the cog commands or just as is?

try1 :
ParseArg(player, "eyeoffset='"eyeVec"'");

try2 :
jkClearString();
jkConcatAsciiString("eyeoffset='");
jkConcatInt(eyeVec);
jkConcatAsciiString("'");
string = jkOutputString(-1, -1);

ParseArg(player, string);

[http://forums.massassi.net/html/smile.gif]Maybe no? (The second method seems really dumb though...)

Sometimes I feel JK is do dumb in taking care of char...

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited August 14, 2001).]

↑ Up to the top!