Jump to content
Sign in to follow this  
headswe

Is it possible to make a custom attribute run globally?

Recommended Posts

I am also wondering the same thing. This would be extremely useful to have

At present the expression is only executed on the server and so if a client needs to lookup a value it needs to be sent from this server. This adds a fair bit of overhead. I was hoping on the client we could assume that all attributes were executed by postInit. However it seems now that we must send data to the client probably group a global setvar and then on the client we must wait for it to arrive.

An example application would be a map tracker for various units with their marker being set through a custom attribute. At present remote exec/setvar must be done from the server.

This adds a lot of extra work that could be saved by having a global flag for custom attributes.

  • Like 1

Share this post


Link to post
Share on other sites

This would be wonderful to have for any mod that wants to both act in MP but have local effects on clients.

Share this post


Link to post
Share on other sites

Agree, that would be a huge improvement of eden in terms of modding it. 

 

Current situation isn't ideal, especially for communities with a high player count, as the total amount of overhead, like snippers said, will increase drastically.

Share this post


Link to post
Share on other sites
It seems like such a waste to have the server sync variables with `setVariable [x,y,true]` when the data already exists in the sqm that's loaded on all clients.

 

Another possible improvement would be to add a command like `getObjectMissionConfigValue`

Which could get an object's attributes from the sqm.

  • Like 1

Share this post


Link to post
Share on other sites

 

It seems like such a waste to have the server sync variables with `setVariable [x,y,true]` when the data already exists in the sqm that's loaded on all clients.
 
Another possible improvement would be to add a command like `getObjectMissionConfigValue`
Which could get an object's attributes from the sqm.

 

 

This!

Share this post


Link to post
Share on other sites

Yeah that command would be awesome! And would offer a convienent alternative to wanting an option to global run attributes (Alongside a command for groups as well).

I didn't realise getMissionConfigValue worked for custom mission attributes until rather recently which does offer a means for the client to read custom mission attributes values

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  

×