BIS fnc VREffectKilled: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=") |
Lou Montana (talk | contribs) m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2") |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.24 | |||
|1.24 | |||
|exec= spawn | |||
|gr1= VR | |gr1= VR | ||
| Delete body of a virtual soldier after he's killed. | |descr= Delete body of a virtual soldier after he's killed. | ||
| [object, instant, delay] call [[BIS_fnc_VREffectKilled]] | |s1= [object, instant, delay] call [[BIS_fnc_VREffectKilled]] | ||
|p1= object: [[Object]] - | |p1= object: [[Object]] - object | ||
|p2= instant: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the body right away, [[false]] to add '''killed''' [[addEventHandler|EH]] which will delete it after death | |p2= instant: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the body right away, [[false]] to add '''killed''' [[addEventHandler|EH]] which will delete it after death | ||
|p3= delay: [[Number]] - (Optional, default 10) | |p3= delay: [[Number]] - (Optional, default 10) time in seconds before the body disappears | ||
|r1= [[Boolean]] - [[true]] when the function is done | |||
|x1= <sqf>[player] call BIS_fnc_VREffectKilled;</sqf> | |||
|x2= <sqf>[player, true, 5] spawn BIS_fnc_VREffectKilled;</sqf> | |||
|seealso= [[Arma 3: Virtual Reality Custom Courses|Arma 3 VR Custom Courses]] | |seealso= [[Arma 3: Virtual Reality Custom Courses|Arma 3 VR Custom Courses]] [[:Category:Function Group: VR|VR functions]] | ||
}} | }} |
Latest revision as of 17:27, 8 November 2023
Description
Syntax
- Syntax:
- [object, instant, delay] call BIS_fnc_VREffectKilled
- Parameters:
- object: Object - object
- instant: Boolean - (Optional, default false) true to delete the body right away, false to add killed EH which will delete it after death
- delay: Number - (Optional, default 10) time in seconds before the body disappears
- Return Value:
- Boolean - true when the function is done
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- Arma 3 VR Custom Courses 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