Game Development Community

Converting a number to a string

by Richard Skala · in Torque Game Builder · 12/08/2009 (11:09 pm) · 1 replies

How do you convert a number/integer to a string using TorqueScript?

Is there a specific function call for that?

Thanks.

#1
12/09/2009 (12:41 am)
No real need to. TorqueScript is pretty loose in that regard. Actually, everything in TorqueSript is a string (although it's often automatically converted to floats or ints internally). Just go ahead and feed it into a string operator like $= or @. It'll work.