Jump to content
Sign in to follow this  
sandbird

Convert weird coordinates to normal ones

Recommended Posts

I am trying to do absolute coordinates for objects in the database, because things tend to move on server restart.

I have this:

[336.253,"[6028.168945,1444.422974,0.370625]"]

and i want to convert it to this:

[336.253,[6028.168945,1444.422974,0.370625]]

The problem is that i cant call compile that string, cause it will remove the extra decimal numbers from the coordinates, which of course i dont want :/

Any ideas please ?

-Thanks

Share this post


Link to post
Share on other sites

I would go back and ask yourself why you're getting an array as a sting within your array first.

Share this post


Link to post
Share on other sites

Well, i am trying to do this: http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/

Basically hold extra numbers for precision in the coordinates system....But i keep ending up with quotes around the final result.

And i dont understand why call compiling it trims them.

I first Select the coordinates from the database, and select the 2nd part of the array (not the direction value).

I use the trick to get the extra decimal points and when i import it back....it has quotes.

Call compiling it first removes the extra decimal points which i need :/

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×