IsPlayerStreamedIn

From Onset Developer Wiki
Revision as of 14:45, 26 June 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
IsPlayerStreamedIn

Type: Function
Context: Server
Introduced: v1.0

Description

Check if the player B (otherid) is streamed in for player A (player).

Syntax

IsPlayerStreamedIn(player, otherid)

Parameters

  • player
    The player identifier for which the other player should be streamed in.
  • otherid
    The player identifier for the player which will be streamed in.

Return Value

  • The function returns true on success.

Example

if IsPlayerStreamedIn(playerId, otherId) then
    AddPlayerChat(playerId, "You have just streamed in other player.")
end

See also