OnNPCStreamIn: Difference between revisions

From Onset Developer Wiki
No edit summary
mNo edit summary
 
(One intermediate revision by one other user 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)}}
Line 7: Line 7:


{{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