BIS fnc unitCapture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page BIS fnc UnitCapture to BIS fnc unitCapture: Text replacement - "BIS fnc Unit" to "BIS fnc unit")
m (Text replacement - "\[\[BIS[ _]fnc[ _]U([^A-Z])" to "[[BIS_fnc_u$1")
Line 12: Line 12:
Array in format [FrameTime, UnitPosition, UnitDirectionVector, UnitUpVector, UnitVelocity] for each frame
Array in format [FrameTime, UnitPosition, UnitDirectionVector, UnitUpVector, UnitVelocity] for each frame


| [unit, duration, FPS, firing, startTime] spawn [[BIS_fnc_UnitCapture]]
| [unit, duration, FPS, firing, startTime] spawn [[BIS_fnc_unitCapture]]


|p1= unit: [[Object]] - Unit to capture movement data from
|p1= unit: [[Object]] - Unit to capture movement data from
Line 28: Line 28:
|exec= spawn
|exec= spawn


|x1= <code>[BIS_Vehicle, 50, 30, true, 10] [[spawn]] [[BIS_fnc_UnitCapture]];</code>
|x1= <code>[BIS_Vehicle, 50, 30, true, 10] [[spawn]] [[BIS_fnc_unitCapture]];</code>


| [[BIS_fnc_UnitCaptureFiring]], [[BIS_fnc_UnitCaptureSimple]], [[BIS_fnc_UnitPlaySimple]], [[BIS_fnc_UnitPlayFiring]], [[BIS_fnc_UnitPlay]]
| [[BIS_fnc_unitCaptureFiring]], [[BIS_fnc_unitCaptureSimple]], [[BIS_fnc_unitPlaySimple]], [[BIS_fnc_unitPlayFiring]], [[BIS_fnc_unitPlay]]
}}
}}



Revision as of 00:22, 28 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
spawn
Groups:
Scenes

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object - Unit to capture movement data from
duration: Number - Duration to capture for
FPS: Number - (Optional, default 20) Frames recorded per second (default 20). Limit is 1 - 100
Firing: Boolean - (Optional, default false) If true, will record the input unit's weapon fire data as well
startTime: Number - (Optional, default 0) Starting time offset for the frame time
Return Value:
Return value needed

Examples

Example 1:
[BIS_Vehicle, 50, 30, true, 10] spawn BIS_fnc_unitCapture;

Additional Information

See also:
See also needed

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
Posted on September 29, 2014 - 21:31 (UTC)
Benargee
Video Tutorial by TheJserver
A2 OA Logo.png1.56Part 1: https://www.youtube.com/watch?v=ryB20wQhSr0
A2 OA Logo.png1.56Part 2: https://www.youtube.com/watch?v=ePszdYfMRvc
Works exactly the same in Arma 3 to my experience.