BIS fnc reviveOnBeingRevived: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.42


|1.42|Game version=
|gr1= Revive


<!---|arg= local |Multiplayer Arguments=--->
|descr= Used to execute specific code locally on every client whenever "being revived" flag changes.


<!---|eff= local |Multiplayer Effects=--->
|s1= [nil, flagState, unit] call [[BIS_fnc_reviveOnBeingRevived]]


| <pre>/*
|p1= nil: [[Nothing]] - ''This parameter has not been implemented''
Author: Jiri Wainar


Description:
|p2= flagState: [[Boolean]] - (Optional, default [[false]]) flag state - [[true]] or [[false]]
Used to execute specific code localy on every client whenever 'being revived' flag changes.


Parameters:
|p3= unit: [[Object]] - unit to set the flag for
_this select 0: STRING - Variable that carries the 'being revived' flag over the network, defined by macro VAR_TRANSFER_BEING_REVIVED.
_this select 1: BOOL - Flag state - true or false.
_this select 2: OBJECT - Unit to set the flag for.


Returns:
|r1= [[Boolean]] - returns [[true]] or [[Nothing]] if state didn't change
True if successful, false if not.
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_reviveOnBeingRevived]]|Syntax=
|x1= <sqf>[nil, true, squadLeader] call BIS_fnc_reviveOnBeingRevived;</sqf>


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|seealso= [[Arma 3: Revive]] [[BIS_fnc_reenableRevive]] [[BIS_fnc_reviveAllowed]] [[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_reviveOnForcingRespawn]] [[BIS_fnc_reviveOnState]] [[BIS_fnc_reviveOnStateJIP]] [[BIS_fnc_reviveSecureUnit]]
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Revive|{{uc:reviveOnBeingRevived}}]]
[[Category:Functions|{{uc:reviveOnBeingRevived}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:reviveOnBeingRevived}}]]

Latest revision as of 16:52, 8 November 2023

Hover & click on the images for description

Description

Description:
Used to execute specific code locally on every client whenever "being revived" flag changes.
Execution:
call
Groups:
Revive

Syntax

Syntax:
[nil, flagState, unit] call BIS_fnc_reviveOnBeingRevived
Parameters:
nil: Nothing - This parameter has not been implemented
flagState: Boolean - (Optional, default false) flag state - true or false
unit: Object - unit to set the flag for
Return Value:
Boolean - returns true or Nothing if state didn't change

Examples

Example 1:
[nil, true, squadLeader] call BIS_fnc_reviveOnBeingRevived;

Additional Information

See also:
Arma 3: Revive BIS_fnc_reenableRevive BIS_fnc_reviveAllowed 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_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