Interface administrators, moderator
2,858
edits
(Created page with "{{ScriptItem |endpoint = server |type = method |class = Element |name = setExistsFor |parameters = Client client, [ bool forced = false ] |parameter1 = Client client The clien...") |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
|class = Element | |class = Element | ||
|name = setExistsFor | |name = setExistsFor | ||
|parameters = Client client, | |parameters = Client client, bool exists | ||
|parameter1 = Client client The client to set whether the element exists for or not | |parameter1 = Client client The client to set whether the element exists for or not | ||
|parameter2 = bool exists Whether or not the element will exist for this client | |parameter2 = bool exists Whether or not the element will exist for this client | ||
| Line 10: | Line 10: | ||
|returnFail1 = void | |returnFail1 = void | ||
|usage = sets whether or not the element should exist for this client | |usage = sets whether or not the element should exist for this client | ||
|notes = | |notes = When creating an element, it will exist for all clients by default, so using this function isn't necessary unless you turn off [[element.defaultExistance|element.defaultExistance]] at some point.<br> | ||
You can use [[element.existsFor|element.existsFor]] to see if this element exists for a specific client, and [[element.clearExistsFor|element.clearExistsFor]] to clear the list of clients added by this function. | |||
}} | }} | ||