OnNPCStreamIn: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Event|Server & Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnNPCStreamIn(npc, player)}} {{FuncParameters}} {{FuncParam|npc|The NPC for the other player..."
 
Chloe (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Event|Server & Client|1.0}}
{{Info|Event|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|The event thats called when a NPC is streamed for a player.}}


{{FuncSyntax|OnNPCStreamIn(npc, player)}}
{{FuncSyntax|OnNPCStreamIn(npc, player)}}
{{FuncSyntaxClient|OnNPCStreamIn(npc)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|npc|The NPC for the other player is streamed in.}}
{{FuncParam|npc|The NPC identifier for the other player is streamed in.}}
{{FuncParam|player|The player that streams in for npc.}}
{{FuncParam|player|The player that streams in for npc.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
-- client side example
AddEvent("OnNPCStreamIn", function(npcid)
SetNPCOutline(npcid, true)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerEvents}}
{{NPCEvents}}

Latest revision as of 08:24, 16 January 2020

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