Client
Instance existing is a module to await for a certain entity to exist physically
lib.awaitInstanceExisting
lib.awaitInstanceExisting(entity, netId, timeout)Parameters
- entity
number(optional): The entity to await. - netId
number(optional): The network id of the entity. - timeout
number(optional): The timeout in milliseconds to wait for the entity to exist.
Returns
- entityClientHandle
number: The client handle of the entity. - entityNetId
number|nil: The network id of the entity.
Callouts
- Please be aware that at least you need to pass an entity or a net id and don't pass them both aswell