Jump to content

Scripting Functions with sceneryObject type


sunski34

Recommended Posts

Hi,

 

Happy new year folks.

 

I have a problem with SceneryObject type.

 

 

The result of world.searchObjects using Object.Category.SCENERY is ok, I have the objects.

But when using getDesc and getLife functions script is stopped during the call of those functions.

 

When I use SceneryObject.getDescByName on the same objects (using getName) then its ok I have the description datas.

 

But in log, during the call of that function I have

2020-01-01 06:42:03.291 ERROR   wInfo: can't open Objects[82510332] table
2020-01-01 06:42:03.291 ERROR   GRAPHICSVISTA: Can't open model 82510332.

 

82510332 is the name of current object, ok.

 

 

The detail of the returned table is :

 

2020-01-01 06:42:03.291 INFO    SCRIPTING:   key 'life' - Type number : 0
2020-01-01 06:42:03.291 INFO    SCRIPTING:   table 'attributes' listing
2020-01-01 06:42:03.291 INFO    SCRIPTING:     key 'Buildings' - Type boolean : True
2020-01-01 06:42:03.291 INFO    SCRIPTING:   key '_origin' - Type string : 
2020-01-01 06:42:03.291 INFO    SCRIPTING:   key 'category' - Type number : 4
2020-01-01 06:42:03.291 INFO    SCRIPTING:   key 'typeName' - Type string : 82510332
2020-01-01 06:42:03.291 INFO    SCRIPTING:   key 'displayName' - Type string : 

 

desc.life is strange... value = 0 but building ok.

 

 

Finaly, destroy function doesn't work, buildings are still visible.

 

An idea?

 

Thanks

Link to comment
Share on other sites

  • 2 years later...

Check the topic linked by toutenglisse. I'm planning soon to release something that allow me to strike some sceneryObjects on Caucasus ( and have been starting work for Syria too ). I need some time to tune / clean the first version

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...