OnNPCStreamIn: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Server & Client|1.0}} | {{Info|Event|Server & Client|1.0}} | ||
{{FuncDescription| | {{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 == | ||
<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
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
- OnPlayerServerAuth
- OnPlayerSteamAuth
- OnPlayerDownloadFile
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerPickupHit
- OnPlayerJoin
- OnPlayerQuit
- OnPlayerSpawn
- OnPlayerDeath
- OnPlayerWeaponShot
- OnPlayerDamage
- OnPlayerChat
- OnPlayerChatCommand
- OnPlayerInteractDoor
- OnPlayerChangeDimension
Vehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerStateChange
- OnVehicleRespawn
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnVehicleDamage
- OnVehicleChangeDimension
- OnVehicleCreated
- OnVehicleDestroyed
Game
Package
NPC
- OnNPCReachTarget
- OnNPCDamage
- OnNPCSpawn
- OnNPCDeath
- OnNPCStreamIn
- OnNPCStreamOut
- OnNPCChangeDimension
- OnNPCCreated
- OnNPCDestroyed
Object
- OnObjectStopMoving
- OnObjectChangeDimension
- OnObjectCreated
- OnObjectDestroyed
- OnObjectStreamIn
- OnObjectStreamOut