OnNPCExitVehicle: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=This function is called when an NPC leaves a vehicle.| params=<syntaxhighlight lang="lua">(vehicleid)</syntaxhighlight> <poem>:: vehicle : The ID of the vehicl...")
 
No edit summary
Line 1: Line 1:
{{Welcome|
{{Welcome|
desc=This function is called when an NPC leaves a vehicle.|
desc=This function is called when an NPC leaves a vehicle.|
params=<syntaxhighlight lang="lua">(vehicleid)</syntaxhighlight>
params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>|
<poem>:: vehicle : The ID of the vehicle the NPC is exiting.</poem>|
retvals=This function does not return any specific values.|
retvals=This function does not return any specific values.|
example=<source lang="lua">
example=<source lang="lua">
function OnNPCExitVehicle(vehicleid)  
function OnNPCExitVehicle()  
{  
{  
     print("NPC exited vehicle" +vehicleid+"\n");
     print("NPC exited vehicle\n");
}  
}  
</source>
</source>
}}
}}

Revision as of 14:08, 9 March 2022


Description:
This function is called when an NPC leaves a vehicle.


Parameters:

NoParams


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


Example

function OnNPCExitVehicle() 
{ 
     print("NPC exited vehicle\n");
}