OnVehicleDamage: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
__NOTOC__  
__NOTOC__  
{{Server event}}
This event is triggered when a vehicle encounters damage.
This event is triggered when a vehicle encounters damage.


==Syntax==  
==Parameters==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
void onVehicleDamage ( float loss )
float loss
</syntaxhighlight>  
</syntaxhighlight>  
*'''loss''': A float representing the amount of health the vehicle lost.


==Example==  
==Example==  
This example does...
This example page lacks an example
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
--add an example here
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>
==See Also==
{{Event_functions}}
[[Category:Needs Example]]

Revision as of 15:09, 22 October 2007

This event is triggered when a vehicle encounters damage.

Parameters

float loss
  • loss: A float representing the amount of health the vehicle lost.

Example

This example page lacks an example

--add an example here

See Also