View Issue Details

IDProjectCategoryView StatusLast Update
0009822New issuesServerpublic2018-09-30 14:03
ReporterJayAssigned To 
Status closedResolutionsuspended 
Summary0009822: Hiding a marker using setElementVisibleTo does not work

When hiding a marker using setElementVisibleTo, it does not work the first time. You have to first of all set the element visible flag to true, and then the hide will work.


setElementVisibleTo(markerElement, thePlayer, false)

Will not work initially. To make it work, you have to do:

setElementVisibleTo(markerElement, thePlayer, true)
setElementVisibleTo(markerElement, thePlayer, false) -- now it will be hidden

Steps To Reproduce

Here is a test script.

Simply load the server side resource script, and type the command /pos, then enter the blue marker. You will see it doesn't disappear.

Uncomment line 13 to fix.

TagsNo tags attached.

Issue History

Date Modified Username Field Change