Jump to content
Sign in to follow this  
cthulhu616

how to convert back groups or objects which where converted to a string

Recommended Posts

hi

is there a way to convert groups or objects back to ther heritence data type or is this information lost after it was "stringed"?

grz ct

Share this post


Link to post
Share on other sites

Can you give an example of what you're trying to do? I can't imagine what you mean by "stringed". :)

Share this post


Link to post
Share on other sites

Like Kylania said can you give us an example of what your trying to do? I don't know why you would even need to do this.

If your refering to changing things to a string with this command: str

_myvar = player;

_mystring = str _myvar;

hint _mystring;

// you can still reference the object later
_myvar setDamage 1;

The variable does not go anywhere, when you pass it a variable that is referring to a group or an object it converts data into a string, in those cases the name of the group or the object. The variable or pointer that you passed this command is still there unless you destroy it:

_myvar = nil

http://en.wikipedia.org/wiki/Variable_(computer_science)

http://community.bistudio.com/wiki/Category:Data_Types

Now if your talking about passing data through strings like over the network or to a persistent database take a look at the example mission in my sig.

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  

×