BIS fnc tridentHandleDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>")
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Sides


|1.00|= Game version
|descr= Register a unit as Trident unit.
____________________________________________________________________________________________
When competing sides are still friendly and the unit is killed by the competing side,
the killer won't be punsihed by negative score. Instead, Trident relationship will decrease.


| <pre>/*
|s1= object call [[BIS_fnc_tridentHandleDamage]]


Description:
|p1= object: [[Object]]
Register a unit as Trident unit.
When competing sides are still friendly and the unit is killed by the competing side,
the killer won't be punsihed by negative score. Instead, Trident relationship will decrease.


Parameter(s):
|r1= [[Boolean]] - [[true]] if event handler managing the functionality was added, [[false]] when it existed already
0: OBJECT


Returns:
|x1= <sqf>BIS_tridentObject call BIS_fnc_tridentHandleDamage;</sqf>
BOOL - true if event handler managing the functionality was added, false when it existed already
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_tridentHandleDamage]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_tridentSetRelationship]] [[BIS_fnc_tridentGetRelationship]] [[BIS_fnc_tridentExecute]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:tridentHandleDamage}}]]
[[Category:Functions|{{uc:tridentHandleDamage}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:tridentHandleDamage}}]]

Latest revision as of 13:23, 1 July 2022

Hover & click on the images for description

Description

Description:
Register a unit as Trident unit. When competing sides are still friendly and the unit is killed by the competing side, the killer won't be punsihed by negative score. Instead, Trident relationship will decrease.
Execution:
call
Groups:
Sides

Syntax

Syntax:
object call BIS_fnc_tridentHandleDamage
Parameters:
object: Object
Return Value:
Boolean - true if event handler managing the functionality was added, false when it existed already

Examples

Example 1:
BIS_tridentObject call BIS_fnc_tridentHandleDamage;

Additional Information

See also:
BIS_fnc_tridentSetRelationship BIS_fnc_tridentGetRelationship BIS_fnc_tridentExecute

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