BIS fnc reviveAllowed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function


| arma3 |Game name=
|game1= arma3


|1.42|Game version=
|version1= 1.42


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


<!---|eff= local |Multiplayer Effects=--->
<!--|arg= local-->


| <pre>/*
<!--|eff= local-->
Author: Jiri Wainar


Description:
|descr= Returns true if unit is in general able to revive someone.
Returns true if unit is in general able to revive someone.


Parameters:
|s1= [medic, unit] call [[BIS_fnc_reviveAllowed]]
0: OBJECT - unit performing revive
1: OBJECT - unit that will be revived


Returns:
|p1= medic: [[Object]] - Unit performing revive
SCALAR (check defines.inc for exact values)
> 0: unit is able to perform revive action
< 0: unit is NOT able to perform revive action


Example:
|p2= unit: [[Array]] - Unit that will be revived
_reviveAllowed = [_unit,_target] call bis_fnc_reviveAllowed;
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_reviveAllowed]]|Syntax=
|r1= [[Boolean]] - Returns [[true]] if possible, [[false]] is not


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|x1= <code>_canRevive = [medic,target] [[call]] [[BIS_fnc_reviveAllowed]];</code>


|Datatype - description|Return value=
|exec= call


|x1= <code></code>|Example 1=
|seealso= [[Arma 3 Revive]] [[BIS_fnc_disableRevive]] [[BIS_fnc_reenableRevive]] [[BIS_fnc_reviveBleedOut]] [[BIS_fnc_reviveDamageReset]] [[BIS_fnc_reviveDebug]] [[BIS_fnc_reviveEhDammaged]] [[BIS_fnc_reviveEhHandleDamage]] [[BIS_fnc_reviveEhHandleHeal]] [[BIS_fnc_reviveEhKilled]] [[BIS_fnc_reviveEhRespawn]] [[BIS_fnc_reviveEnabled]] [[BIS_fnc_reviveGet3dIcons]] [[BIS_fnc_reviveGetActionIcon]] [[BIS_fnc_reviveIconControl]] [[BIS_fnc_reviveInit]] [[BIS_fnc_reviveIsValid]] [[BIS_fnc_reviveIsValidSecure]] [[BIS_fnc_reviveOnBeingRevived]] [[BIS_fnc_reviveOnForcingRespawn]] [[BIS_fnc_reviveOnState]] [[BIS_fnc_reviveOnStateJIP]] [[BIS_fnc_reviveSecureUnit]]


|exec= call |Execution=
| |See also=
}}
}}



Revision as of 13:49, 12 January 2020

Hover & click on the images for description

Description

Description:
Returns true if unit is in general able to revive someone.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[medic, unit] call BIS_fnc_reviveAllowed
Parameters:
medic: Object - Unit performing revive
unit: Array - Unit that will be revived
Return Value:
Boolean - Returns true if possible, false is not

Examples

Example 1:
_canRevive = [medic,target] call BIS_fnc_reviveAllowed;

Additional Information

See also:
Arma 3 Revive BIS_fnc_disableRevive BIS_fnc_reenableRevive BIS_fnc_reviveBleedOut BIS_fnc_reviveDamageReset BIS_fnc_reviveDebug BIS_fnc_reviveEhDammaged BIS_fnc_reviveEhHandleDamage BIS_fnc_reviveEhHandleHeal BIS_fnc_reviveEhKilled BIS_fnc_reviveEhRespawn BIS_fnc_reviveEnabled BIS_fnc_reviveGet3dIcons BIS_fnc_reviveGetActionIcon BIS_fnc_reviveIconControl BIS_fnc_reviveInit BIS_fnc_reviveIsValid BIS_fnc_reviveIsValidSecure BIS_fnc_reviveOnBeingRevived BIS_fnc_reviveOnForcingRespawn BIS_fnc_reviveOnState BIS_fnc_reviveOnStateJIP BIS_fnc_reviveSecureUnit

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note