BIS fnc dirtEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Feedback


|1.00|= Game version
|eff= local
____________________________________________________________________________________________


| <pre>/*
|descr= Screen dirt (texture) postprocess.
File: fn_dirtEffect.sqf
Displays dust PP according to damage obtained from near explosion; takes array from "Explosion" event handler.


Description:
|s1= [unit, damage] call [[BIS_fnc_dirtEffect]]
Dirt (texture) postprocess.


Parameter(s):
|p1= unit: [[Object]] - who gets the damage. '''Unused and useless parameter'''
_this select 0: Object - Unit who gets the damage.
_this select 1: Number - Damage given unit by explosion.
Returned value:
None.
*/


//TEST
|p2= damage: [[Number]] - damage given to unit by explosion
// hint format ["Hit by: %1", BIS_hitArray select 4];


//Script displays dust PP according to damage obtained from near explosion
|r1= [[Nothing]]
//takes array from "Explosion" event handler, that is registered in FSM PP


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>[nil, 0.5] call BIS_fnc_dirtEffect;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_dirtEffect]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_bloodEffect]] [[BIS_fnc_flamesEffect]]
}}
}}
<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: Feedback|{{uc:dirtEffect}}]]
[[Category:Functions|{{uc:dirtEffect}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:dirtEffect}}]]

Latest revision as of 14:25, 13 July 2022

Hover & click on the images for description

Description

Description:
Screen dirt (texture) postprocess. Displays dust PP according to damage obtained from near explosion; takes array from "Explosion" event handler.
Execution:
call
Groups:
Feedback

Syntax

Syntax:
[unit, damage] call BIS_fnc_dirtEffect
Parameters:
unit: Object - who gets the damage. Unused and useless parameter
damage: Number - damage given to unit by explosion
Return Value:
Nothing

Examples

Example 1:
[nil, 0.5] call BIS_fnc_dirtEffect;

Additional Information

See also:
BIS_fnc_bloodEffect BIS_fnc_flamesEffect

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