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 (see also)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma 3 |= Game name


|1.00|= Game version
|1.24|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Initialize hit effects on VR targets.<br>
Author: Karel Moricky
<br>grey - undamaged
<br>orange - damaged
<br>red - destroyed|= Description
____________________________________________________________________________________________


Description:
| [object,time] call [[BIS_fnc_VRHitpart]] |= Syntax
Initialize hit effects on VR targets
____________________________________________________________________________________________
- grey - undamaged
- orange - damaged
- red - destroyed


Parameter(s):
|p1= object: [[Object]] - VR Object|= Parameter 1
0: OBJECT
|p2= time: [[Number]] - (Optional, default 30) Delay before hit parts are returned back to default|= Parameter 2
1 (Optional, default is 30): NUMBER - delay before hit parts are returned back to default
 
Returns:
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
| [[Nothing]]|= Return value
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_delta = [someObject, 60] [[call]] [[BIS_fnc_VRHitpart]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[:Category:Function Group: VR|VR functions]]|= See also
 
}}
}}



Revision as of 10:35, 1 June 2018

Hover & click on the images for description

Description

Description:
Initialize hit effects on VR targets.

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

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:
_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

Notes

Bottom Section