Returns:String - if value is a String, double quotes "" will surround it (see Example 3)
Examples
Example 1
_s = str (5 + 2); // The value of _s is the string "7"
Example 2
a = [];
ac = 0;
while { ac < 5 } do
{
ac = count a;
a set [ac, format ["Index %1", ac]];
};
hintSilentstr a; // hints all of ["Index 0","Index 1","Index 2","Index 3","Index 4"] including brackets, quotes and commas
When applied to a unit, this returns the variable name that was assigned to the unit in the editor (see also vehicleVarName).
For example, if you have created a playable unit with the name 'thePlayer' then you can use 'str player' to return "thePlayer".