Example Code: Convert Position To Map Grid – Talk
Jump to navigation
Jump to search
Since ArmA v1.09 you can use the command toString to convert the integers into letters.
Example:
_str = toString([65 + _t]);
Result is the capital letter A if _t = 0, B if _t = 1, etc.
_str = toString([97 + _t]);
Result is the small letter a if _t = 0, b if _t = 1, etc.
As you can see, you don't need so many if-clauses anymore in order to create these letters.--Timmey 21:08, 5 February 2008 (CET)