NetEvents

Summary

Methods

Method Returns
Subscribe(eventName: string, callback: callable) NetEvent
Subscribe(eventName: string, context: any, callback: callable) NetEvent
SendTo(eventName: string, player: Player, …args: any) void
SendToLocal(eventName: string, player: Player, …args: any) void
Broadcast(eventName: string, …args: any) void
BroadcastLocal(eventName: string, …args: any) void
SendUnreliableTo(eventName: string, player: Player, …args: any) void
SendUnreliableToLocal(eventName: string, player: Player, …args: any) void
BroadcastUnreliable(eventName: string, …args: any) void
BroadcastUnreliableLocal(eventName: string, …args: any) void
SendUnreliableOrderedTo(eventName: string, player: Player, …args: any) void
SendUnreliableOrderedToLocal(eventName: string, player: Player, …args: any) void
BroadcastUnreliableOrdered(eventName: string, …args: any) void
BroadcastUnreliableOrderedLocal(eventName: string, …args: any) void
Unsubscribe() void
Unsubscribe(eventName: string) void

Methods

Subscribe

Subscribe(eventName: string, callback: callable): NetEvent

Parameters

Name Type Description
eventName string
callback callable

Returns

Type Description
NetEvent

Subscribe

Subscribe(eventName: string, context: any, callback: callable): NetEvent

Parameters

Name Type Description
eventName string
context any
callback callable

Returns

Type Description
NetEvent

SendTo

SendTo(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

SendToLocal

SendToLocal(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

Broadcast

Broadcast(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

BroadcastLocal

BroadcastLocal(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

SendUnreliableTo

SendUnreliableTo(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

SendUnreliableToLocal

SendUnreliableToLocal(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

BroadcastUnreliable

BroadcastUnreliable(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

BroadcastUnreliableLocal

BroadcastUnreliableLocal(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

SendUnreliableOrderedTo

SendUnreliableOrderedTo(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

SendUnreliableOrderedToLocal

SendUnreliableOrderedToLocal(eventName: string, player: Player, …args: any)

Parameters

Name Type Description
eventName string
player Player
args any

BroadcastUnreliableOrdered

BroadcastUnreliableOrdered(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

BroadcastUnreliableOrderedLocal

BroadcastUnreliableOrderedLocal(eventName: string, …args: any)

Parameters

Name Type Description
eventName string
args any

Unsubscribe

Unsubscribe()

Unsubscribe

Unsubscribe(eventName: string)

Parameters

Name Type Description
eventName string