OnCheckpointDestroyed: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome|desc=Called when a checkpoint is destroyed/StreamOut. Server sends this also when npc is far away(stream out) from checkpoint. params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the checkpoint destroyed/streamedout. </poem>| example=<source lang="lua"> function OnCheckpointDestroyed(checkpointId) { print("The checkpoint "+ checkpointId+ " is destroyed! ); } </source>| relfuncs=*OnCheckpointStreamIn *OnCheckpointUpdate *IsCheckpoi...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Welcome|desc=Called when a checkpoint is destroyed/StreamOut. Server sends this also when npc is far away(stream out) from checkpoint.
{{Welcome|desc=Called when a checkpoint is destroyed/streamed out. Server sends this also when npc is far away(stream out) from checkpoint.|
params=<source>( checkpointId )</source>
params=<source>( checkpointId )</source>
<poem>checkpointId : The ID of the checkpoint destroyed/streamedout.
<poem>checkpointId : The ID of the checkpoint destroyed/streamedout.

Latest revision as of 15:25, 12 November 2023


Description:
Called when a checkpoint is destroyed/streamed out. Server sends this also when npc is far away(stream out) from checkpoint.


Parameters:

( checkpointId )

checkpointId : The ID of the checkpoint destroyed/streamedout.


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


Example

function OnCheckpointDestroyed(checkpointId)
{
print("The checkpoint  "+ checkpointId+ " is destroyed! );
}

Related Functions

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