Difference between revisions of "VN fnc revive handleDamage"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " {{Function" to "Category:TODO {{Function")
(Page filling)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Ethan Johnson
 
|author= Ethan Johnson
  
|a=
+
|a= local
  
|e=
+
|e= global
  
 
|g1= advanced_revive_functions
 
|g1= advanced_revive_functions
  
|d= <pre>/*
+
|d= Damage handler for the advanced revive. The unit is incapacitated if damage &gt;= 0.9.
        FILE: fn_revive_handlerdamage.sqf
 
        DATE: 18-05-2020
 
        AUTHOR: Ethan Johnson
 
  
        DESCRIPTION:
+
|s= [unit, unused, damage] call [[VN_fnc_revive_handleDamage]]
                Damage handler for the advanced revive
 
        PARAMETERS:
 
                (0): OBJECT - The unit the eventhandler is assigned to
 
                (1): NIL - This index is not used
 
                (2): NUMBER - Damage value
 
        RETURNS:
 
                NUMBER or NIL
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_revive_handledamage]];
+
|p1n= unit
 
+
|p1t= object
|p1n=
+
|p1d= the unit to which the eventhandler is assigned
|p1t=
 
|p1d=
 
 
|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>-</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
Argument(s): local
Effect(s): global

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;