Home   Help Search Login Register  

Author Topic: Object names/numbers for placed objects in WRPtool?  (Read 1587 times)

0 Members and 1 Guest are viewing this topic.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Object names/numbers for placed objects in WRPtool?
« on: 12 Sep 2004, 01:34:24 »
I want to use Mapfacts airport stuff, including the radar tower ect, that require scripts to inititalise....now in the Mapfact readme, as far as i can make out (its in German), it says, to use the object number assigned by WRPtool.

If anyone knows how to find out what an objects number is so i can initialise the script, i'd be grateful.  ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Object names/numbers for placed objects in WRPtool?
« Reply #1 on: 12 Sep 2004, 03:39:47 »
If the objects are placed in the wrp file you can view the Object ID when you zoom in real close in the Mission Editor.

I hope I understood your question right.


Planck
I know a little about a lot, and a lot about a little.

Offline shinraiden

  • Members
  • *
  • kiite, mite, katta
Re:Object names/numbers for placed objects in WRPtool?
« Reply #2 on: 12 Sep 2004, 05:06:48 »
Correct. however binarize will re-ID the objects on your wrp, so you will have to update the object ID's in you mission after each time you pass the wrp through binarize. You may want to note down the position from the object inspector tool to help you find the object easier...

how about
Code: [Select]
_mapfactobject = nearest [x,y,z, "type"]
_objectID = format ["%1", _mapfactobject]
?

Hope this helps.
« Last Edit: 12 Sep 2004, 05:09:46 by shinRaiden »

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Object names/numbers for placed objects in WRPtool?
« Reply #3 on: 12 Sep 2004, 20:19:24 »
If the objects are placed in the wrp file you can view the Object ID when you zoom in real close in the Mission Editor.

I hope I understood your question right.


Planck

Isnt that just like the name of the object, in this case AIR/radar and AIR/radar tower. Doesnt each object have a unique ID and thats the ID you use to initialise the script. And i'm only planning on binarizing everything once  ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Object names/numbers for placed objects in WRPtool?
« Reply #4 on: 12 Sep 2004, 20:25:17 »
NO.........In the Mission Editor, if you zoom in close on the map you will see the object ID's.

You need to press the  'Show IDs'  button first though and you need to be in Advanced mode.


Planck
I know a little about a lot, and a lot about a little.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Object names/numbers for placed objects in WRPtool?
« Reply #5 on: 13 Sep 2004, 19:23:44 »
Ahh coulda told me to press the show ID buttons  ;D

Thanks.

EDIT: One other thing. At the moment i have the scripts initialised by a trigger that activates on startup. Is possible to initialise a script in the WRP config instead? Kinda like you do with units?

I think the answers no, but if anyone knows otherwise or can merely confirm my guess that its not possible, again i'd be gratefull.
« Last Edit: 13 Sep 2004, 20:47:59 by Pathy »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Object names/numbers for placed objects in WRPtool?
« Reply #6 on: 13 Sep 2004, 20:50:21 »
Alas, Init Eventhandlers don't work for Wrp placed objects.......sorry.

I wish they did.


Planck
I know a little about a lot, and a lot about a little.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Object names/numbers for placed objects in WRPtool?
« Reply #7 on: 13 Sep 2004, 21:01:25 »
Yup tried it and it didnt work, just wondering if there was another way  :-\

Ahh well, i think its time to learn how to create a gamelogic  :P

Thanks for all your help, its much appreciated!