Forum Jump :

Author Message

Posts: 104

Level: Member

Country: au
Location: Blue Mountains, NSW
In-game name:

#1 Posted at 2008-10-01 11:13        
Hi guys,

I've got an array of object names from my map, and I'm trying to identify their position.

If I use position "myObject", I get the error Type String, Expected Object,Location.

How do I get an object from its string name?

Well, I ended up using:
call compile format ["var%1 = 0",_n];

That seemed to work for me.

This post was edited by Foxhound (2008-10-01 13:55, ago)