OnNPCStreamIn: Difference between revisions

From Onset Developer Wiki
No edit summary
28days (talk | contribs)
No edit summary
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}}
{{ServerEvents}}

Revision as of 09:59, 19 November 2019

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