OnObjectStreamIn: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome|desc=Called when an object is streamed in for npc. | params=<source>( objectId )</source> <poem>::objectId : The ID of the object </poem>| relfuncs=*OnObjectDestroyed *OnObjectUpdate *IsObjectStreamedIn }}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<poem>::objectId : The ID of the object
<poem>::objectId : The ID of the object
</poem>|
</poem>|
example=<source lang="lua">
function OnObjectStreamIn(objectId)
{
local model=GetObjectModel(objectId);
SendChat("What object is this? - "+ model);
}
</source>|
relfuncs=*[[OnObjectDestroyed]]
relfuncs=*[[OnObjectDestroyed]]
*[[OnObjectUpdate]]
*[[OnObjectUpdate]]
*[[IsObjectStreamedIn]]
*[[IsObjectStreamedIn]]
*[[GetObjectModel]]
*[[SendChat]]
}}
}}

Latest revision as of 08:53, 14 November 2023


Description:
Called when an object is streamed in for npc.


Parameters:

( objectId )

objectId : The ID of the object


Return Values:
This function does not return any specific values.


Example

function OnObjectStreamIn(objectId)
{
local model=GetObjectModel(objectId);
SendChat("What object is this? - "+ model);
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.