Jump to content
Sign in to follow this  
reggaeman007jah

unitCapture Simple Framework

Recommended Posts

Hello everyone, 

 

I have been playing around with unitCapture for a while now, and put together a very basic framework that might help people get into it if they have not tried it before, or might save some time for people who already know how to use it.

 

I'm not a great scripter by any stretch, so apologies if there is some bad practice inside (any improvements gratefully received).

 

This video demonstrates the process: 

 

 

The code is here: https://github.com/reggaeman007jah/ucsf

 

init.sqf

Spoiler

_rec =  player addAction ["Record", "capture.sqf"]; 

_f1 =   player addAction ["Flight 1", "flight1.sqf"]; 

_f2 =   player addAction ["Flight 2", "flight2.sqf"]; 

_f3 =   player addAction ["Flight 3", "flight3.sqf"]; 

_f4 =   player addAction ["Flight 4", "flight4.sqf"]; 

_f5 =   player addAction ["Flight 5", "flight5.sqf"]; 

_f6 =   player addAction ["Flight 6", "flight6.sqf"]; 

_f7 =   player addAction ["Flight 7", "flight7.sqf"]; 

_f8 =   player addAction ["Flight 8", "flight8.sqf"]; 

 

capture.sqf

Spoiler

rec = [vehicle player, 360, 20, true] spawn BIS_fnc_unitCapture;

 

flight1.sqf

Spoiler

// replay _movementDataflight path on designated vehicle

 

_movementData = 

// Paste flight data here (top)

 

// Paste flight data here (bottom)

;

 

_sequence = [heli1, _movementData] spawn BIS_fnc_UnitPlay;

 

The idea is that you basically record your path and simply paste it in between the two comments, and is should just work. This assumes ofc that you have named your helis correctly. 

 

It made things a bit easier for me, especially when applying unitPlay to multiple helis at the same time. So, I hope this is of some help to others.

 

Cheers

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×