Page MenuHomeFeedback Tracker

createMarkerLocal is not local :)
Closed, ResolvedPublic

Description

Try it. If you execute this locally, everybody can see the markers. createMarkerLocal is not local. deleteMarkerLocal is.

Details

Legacy ID
1134785893
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

{
deleteMarkerLocal (name _x);

_marker = createMarkerLocal [(name _x), getPos _x];
_marker setMarkerColorLocal "ColorBlack";
_marker setMarkerTypeLocal "n_inf";
_marker setMarkerText (name _x);
}
forEach allPlayers;

Event Timeline

Eichi edited Steps To Reproduce. (Show Details)Jul 21 2015, 10:12 PM
Eichi set Category to Scripting.
Eichi set Reproducibility to Always.
Eichi set Severity to None.
Eichi set Resolution to No Bug.
Eichi set Legacy ID to 1134785893.May 8 2016, 12:25 PM
Eichi edited a custom field.
chose added a subscriber: chose.May 8 2016, 12:25 PM
chose added a comment.Jul 22 2015, 4:02 PM

I wasn't able to reproduce this issue. How exactly are you executing the code? Is it possible it's being executed globally?

Eichi added a comment.Jul 22 2015, 4:37 PM

I think I pasted the wrong code in here. If you use "setMarkerText" instead of "setMarkerTextLocal" it will turn the local marker into a global one. Sorry for that.

"setMarkerText" is global command, will instantly turn marker global. Not a bug.