Difference between revisions of "VN fnc revive handleDamage"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (1 revision imported) |
Lou Montana (talk | contribs) (Page filling) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Ethan Johnson |
+ | |||
+ | |a= local | ||
− | |e= | + | |e= global |
|g1= advanced_revive_functions | |g1= advanced_revive_functions | ||
− | |d= | + | |d= Damage handler for the advanced revive. The unit is incapacitated if damage >= 0.9. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |s= [] call [[ | + | |s= [unit, unused, damage] call [[VN_fnc_revive_handleDamage]] |
− | |p1n= | + | |p1n= unit |
− | |p1t= | + | |p1t= object |
− | |p1d= | + | |p1d= the unit to which the eventhandler is assigned |
|p1v= | |p1v= | ||
− | |p2n= | + | |p2n= unused |
|p2t= | |p2t= | ||
− | |p2d= | + | |p2d= unused argument index |
|p2v= | |p2v= | ||
− | |r1t= | + | |p3n= damage |
+ | |p3t= number | ||
+ | |p3d= damage value | ||
+ | |p3v= | ||
+ | |||
+ | |r1t= {{DataType|number}} or {{Biki|nil}} | ||
|r1d= | |r1d= | ||
− | |x1= <code> | + | |x1= <code>[player, nil, 0.25] call [[VN_fnc_revive_handleDamage]];</code> |
}} | }} |
Latest revision as of 18:08, 30 January 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Damage handler for the advanced revive. The unit is incapacitated if damage >= 0.9.
Syntax
- Syntax
- [unit, unused, damage] call VN_fnc_revive_handleDamage
- Parameters
- unit: Object - the unit to which the eventhandler is assigned
- unused - unused argument index
- damage: Number - damage value
- Return value
- Number or nil
Examples
- Example 1
[player, nil, 0.25] call VN_fnc_revive_handleDamage;