OnNPCStreamIn

From Onset Developer Wiki
Revision as of 09:59, 19 November 2019 by 28days (talk | contribs)
OnNPCStreamIn

Type: Event
Context: Server & Client
Introduced: v1.0

Description

The event thats called when a NPC is streamed for a player.

Syntax

OnNPCStreamIn(npc, player)
Client Syntax
OnNPCStreamIn(npc)

Parameters

  • npc
    The NPC identifier for the other player is streamed in.
  • player
    The player that streams in for npc.

Example

-- client side example
AddEvent("OnNPCStreamIn", function(npcid)
	SetNPCOutline(npcid, true)
end)

See also

Player

Vehicle

Game

Package

NPC

Object

Pickup

Text3D

Door