Jump to content
target_practice

addGroupIcon not working

Recommended Posts

I've been attempting to try out addGroupIcon to see if it's worth using, but I can't get it to work at all.

theGroup addGroupIcon ["b_inf",[0,0]];

Using it in this way doesn't return any errors or anything, it just does nothing.

I'm also unsure of the locality of this and associated commands. The BIKI doesn't say anything, but I assume its global?

Share this post


Link to post
Share on other sites

Do you have:

 

 setGroupIconsVisible [true,false];

 

  • Thanks 1

Share this post


Link to post
Share on other sites

I didn't, and adding does indeed work, thanks.

I'm still quite confused as to the locality of all these commands though, the documentation for them is rather lacking.

 

As an additional question if anyone can answer, is there any particular performance gain to be had over using normal map markers scripted to update their position on each frame?

Share this post


Link to post
Share on other sites
2 minutes ago, target_practice said:

the documentation for them is rather lacking.

 

true

 

I call the functions client only like so:

if(hasInterface) then
{
 setGroupIconsVisible [true,false];

};

 

And then I call the addgroupicon on client. Not sure if this is the best way but for me it has worked...

 

Share this post


Link to post
Share on other sites
2 minutes ago, target_practice said:

So the command is local then?

 

Idk. that's just how I have used it. could work on server too, untested

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

×