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
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]]
}}
}}

Revision as of 08:52, 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);
}

relfuncs=*OnObjectDestroyed