Home   Help Search Login Register  

Author Topic: Object function completely broken ?  (Read 542 times)

0 Members and 1 Guest are viewing this topic.

Offline sbsmac

  • Members
  • *
  • I'm a llama!
Object function completely broken ?
« on: 07 Sep 2003, 17:39:21 »
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

Unnamed

  • Guest
Re:Object function completely broken ?
« Reply #1 on: 07 Sep 2003, 18:39:36 »
I think object ID's are used by OFP to organize the content of an Island? They refer to bushes e.t.c If you click on the Show ID's button in the editor, and zoom in on some terrain.

That probably answer's you second point as well. As I don't think you can use an objects ID, with anything other than the object command, as far as scripts go.

Offline sbsmac

  • Members
  • *
  • I'm a llama!
Re:Object function completely broken ?
« Reply #2 on: 07 Sep 2003, 19:43:01 »
Hmm - are we talking about the same thing ?  When you create a mission, all the objects in the mission.sqm file have a line saying 'id=nn'.  nn starts at 0 and is incremented for each object.  I'd imagined that the 'object' function was supposed to return a pointer to the object based on this id.

neil

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Object function completely broken ?
« Reply #3 on: 07 Sep 2003, 20:42:51 »
2 much thinkin can ruin ur mind  ::)  :o

da object command refers 2 da objects on da map

2 refer 2 ur objects - u just name em in da name field  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta