Purpose: Easily create SQF script for Unit Capture recordings.
Requires NodeJS: https://nodejs.org/en/download/
- Select the unit you'd like to record (Unit Capture is less effective with infantry, So try to prioritize Vehicles)
- Provide unit with variable name. lowercase works best.
- Create a recording trigger. I typically use Radio Alpha.
- In the Triggers coding block input
[variableName, 50, 30, true, 10] spawn BIS_fnc_unitCapture;]] // varName, recordLength, frameRate, trackFireData?, buffer
- Create a second trigger. this trigger will play the events. in the coding block write
name engineOn true []execVM "filename.ext" // Executes Script.
- Trigger recording trigger (Alpha in this example, by pressing 0-0-1) and do your recording.
- When you finish recording hit Escape, and then Escape again. Your vehicle should be frozen in play.
- Press F1. This will copy the movement data to your devices clipboard.
- Start program and open a browser to http://localhost:3000/api
- in the name category, write the exact variable name of you've used for your unit.
- in the move category, paste your clipboard contents.
- [optional] to get firing tracking go back into game and hit escape twice again.
- [optional] click F2 this time. this will copy the firing content onto your clipboard.
- paste clipboard contents into Pew
- Submit.
- Drag and drop file into Mission File.
Remember that Second Trigger we made? Now you can activate that trigger. Your recording should play once the amount of time you set up as your buffer has passed.
[variableName, 50, 30, true, 10] spawn BIS_fnc_unitCapture;]]
In this case the variable will be recorded for 50 seconds at a refresh rate of 30 per second, track firing data, When the code is triggered the recording will execute after 10 seconds.
- Prevent Duplicate Post Requests
- Error Handling and Redirects
- Drink More Water