BIS fnc VRHitpart: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 7/7)
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3")
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= VR


|1.00|= Game version
|descr= Initialize hit effects on VR targets.<br>
____________________________________________________________________________________________
<br>grey - undamaged
<br>orange - damaged
<br>red - destroyed


| <pre>/*
|s1= [object,time] call [[BIS_fnc_VRHitpart]]
Author: Karel Moricky


Description:
|p1= object: [[Object]] - VR Object
Initialize hit effects on VR targets
|p2= time: [[Number]] - (Optional, default 30) delay before hit parts are returned back to default
- grey - undamaged
- orange - damaged
- red - destroyed


Parameter(s):
|r1= [[Nothing]]
0: OBJECT
1 (Optional, default is 30): NUMBER - delay before hit parts are returned back to default


Returns:
|x1= <sqf>private _delta = [someObject, 60] call BIS_fnc_VRHitpart;</sqf>
NOTHING
*/
 
 
#define MAT_BLUE "\A3\Structures_F_Mark\VR\Targets\Data\VR_Target_MBT_01_cannon_BLUFOR.rvmat"
#define MAT_RED "\A3\Structures_F_Mark\VR\Targets\Data\VR_Target_MBT_01_cannon_OPFOR.rvmat"
#define MAT_GREEN "\A3\Structures_F_Mark\VR\Targets\Data\VR_Target_MBT_01_cannon_INDEP.rvmat"
#define MAT_ORANGE "\A3\Structures_F_Mark\VR\Targets\Data\VR_Target_MBT_01_cannon_damage.rvmat"
#define MAT_GREY "\A3\Structures_F_Mark\VR\Targets\Data\VR_Target_MBT_01_cannon_destroy.rvmat"
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_VRHitpart]]; --> |= Syntax
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[:Category:Function Group: VR|VR functions]]
}}
}}
<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: VR|{{uc:VRHitpart}}]]
[[Category:Functions|{{uc:VRHitpart}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:VRHitpart}}]]

Latest revision as of 12:28, 8 November 2023

Hover & click on the images for description

Description

Description:
Initialize hit effects on VR targets.

grey - undamaged
orange - damaged
red - destroyed
Execution:
call
Groups:
VR

Syntax

Syntax:
[object,time] call BIS_fnc_VRHitpart
Parameters:
object: Object - VR Object
time: Number - (Optional, default 30) delay before hit parts are returned back to default
Return Value:
Nothing

Examples

Example 1:
private _delta = [someObject, 60] call BIS_fnc_VRHitpart;

Additional Information

See also:
VR functions

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