Difference between revisions of "IsPlayerStreamedIn"

From Onset Developer Wiki
 
Line 19: Line 19:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{PlayerFunctions}}
{{ServerPlayerFunctions}}

Latest revision as of 14:45, 26 June 2021

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