So, while edditing a simple mission to test out unitcapture, I ran into a problem.
I have one Wildcat Heli, and four Independent rifleman.
To capture the path, I set up a trigger using radio, and have the script " rec = [vehicle player,200,20] spawn BIS_fnc_UnitCapture; "
It worked, and I copied the data to the clipboard using F1. I then went to the mission file, and made a .sqf called "MovementTest". I placed the script below into the file.
_movementdata = <mdata> ;
//_firingdata = <fdata> ;
_sequence = [Heli1, _movementdata] spawn BIS_fnc_UnitPlay;
//[Heli1, _firingdata] spawn BIS_fnc_UnitPlayFiring;
waitUntil {scriptDone _sequence};
hint "Playback finished";
(Substituting <mdata> for my actual movement path)
Here comes my issue however. When I try to use "nul = [] execVM "MovementTest.sqf" "
nothing happens. The Heli just sits there.
Can someone tell me where to put the command to make the heli follow the path, or if I am writing it incorrectly?
For the guide and script that I used in the making of this use this link (http://forums.bistudio.com/showthread.php?169539-How-to-use-UnitCapture-in-Arma-3)