Difference between revisions of "VN fnc revive handleDamage"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
(Page filling)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Ethan Johnson
+
|author= Ethan Johnson
 +
 
 +
|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:
 
                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]];
+
|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>-</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;