Client
Network existing is a module that gives you the ability to await for an entity to exist physically and networked.
lib.awaitNetworkExisting
lib.awaitNetworkExisting(entityNetId, entityHandle, timeout)Parameters
- entityNetId?:
numberThe network id of the entity. - entityHandle?:
numberThe entity to await. - timeout?:
numberThe timeout in milliseconds to wait for the entity to exist.
Returns
- entityNetId
number | false: The network id of the entity. - entityHandle
number|nil: The handle of the entity.
Callouts
- Please be aware that at least you need to pass an entity or a net id