Jump to content
Sign in to follow this  
Ra'Jiska

Mission Object Name Meaning

Recommended Posts

Hello,

 

I'd like to know what do object name means, for houses for example.

Here is the object name for a shed: 57f2c800# 953602: i_shed_ind_f.p3d ; what does '57f2c800' and '953602' stand for ? How are they assigned ?

But also, how come 57f2c800 is sometimes not synchronized between client & server while the 953602 is ?

 

Thank you for your help.

 

Share this post


Link to post
Share on other sites

static objects are not synced

 

I wouldn't worry about the internal ids of objects. You normally don't them anyway.

  • Like 1

Share this post


Link to post
Share on other sites

This part represents the object ID 953602, it looks to be synced over every players. I'd say it is the object map ID.

However, 57f2c800 is synced with clients most of the time but some time it just isn't, I use the whole static object ID to compare some stuff.

 

Do you know what the first part refers to and do you know if it'd be a problem if I'd only take what is after the '#' to compare stuff ?

 

Thanks.

Share this post


Link to post
Share on other sites

can't help you if you don't tell us what exactly you're after.

 

"stuff" is no useful information

Share this post


Link to post
Share on other sites

Don't worry about that anymore, I managed to extract the needed part, as the first block doesn't seem very important.

However, I'd need to convert a string to a house object.

 

So let's say I have this string, "57f2c800# 953602: i_shed_ind_f.p3d" is there any way to convert it to the object pointing to the house ?

Currently, the only way I found was doing:

_a = "57f2c800# 953602: i_shed_ind_f.p3d";
_b = missionNamespace getVariable [_a, objNull];

However, the _b variables ends up being a NULL object while I wish it to point to the house I designed.

Do you know if there is a way to accomplish this.

Share this post


Link to post
Share on other sites


_mybuilding = _pos nearestobject 953602;

_b = missionnamespace getvariable [_mybuilding,objnull];

systemchat str _b;

  • Like 1

Share this post


Link to post
Share on other sites

try this:

_b = [0,0,0] nearestObject 953602; 
edit.: oh Quiksilver beat me to it :P
  • Like 2

Share this post


Link to post
Share on other sites

Work like a charm.

Thank you very much guys !

 

Concerning the first block it doesn't look like the location in memory as most of the time it's equal to client's.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×