Ho-ho, the comref says that the 'object' function can be used to return an object based upon its id (as entered in the missions file). Whenever I try it, eg
_obj = object 1
it gratuitously crashes OFP for me - this happens in both the mission editor and for exported missions. I've tried this with both 1.85 and 1.91 with the same results. Has anyone got any tips or is it really completely broken ?
On a related note, 'object' would be a hell of a lot more useful (assuming it worked) if there was a reciprocal 'id' function that returned the id of an object. Grumble, grumble....
neil