Sasuke 1 Posted September 12, 2013 Hey guys, I used to play a video in the GPS for a lot of my missions back in ArmA 2, and I'm not sure if it still works for ArmA 3. _video = ["video\intro.ogv"] spawn bis_fnc_customGPSvideo; waitUntil {scriptDone _video}; That's the script I used, but I get an error "RSC Layer name cannot be empty string". Any ideas? Thanks, Sasuke Share this post Link to post Share on other sites
dr_strangepete 6 Posted September 13, 2013 im not sure about the rsc layer issue (try call instead of spawn? and from a quick look its also possible you need to use BIS_fnc_customGPS first, the function code alludes to using variables set by fnc_customGPS), but i did notice that BIS_fnc_customGPSvideo returns True/False, and not a script handle Share this post Link to post Share on other sites
Sasuke 1 Posted September 14, 2013 Ok, so (to simplify it for my tiny mind) - The best way to execute it would be either Call bis_fnc_customGPSvideo _video = ["video\intro.ogv"]; WaitUntil {scriptDone _video}; Or I'll also try... _video = ["video\intro.ogv"]; Call bis_fnc_customGPSvideo; WaitUntil {scriptDone _video}; ---------- Post added at 14:46 ---------- Previous post was at 13:28 ---------- Neither of those work, even with a few modifications... Share this post Link to post Share on other sites
dr_strangepete 6 Posted September 14, 2013 you cant use scriptDone, like i said it only returns true or false, so you need to: waitUntil {_video}; and call is used the same way as spawn, use your original code and just replace the word spawn with call and try that Share this post Link to post Share on other sites
b00tsy 28 Posted September 14, 2013 This is how it worked in arma 2: _video = ["gps1.ogv",1] spawn bis_fnc_customGPSvideo; waitUntil {scriptDone _video}; I made a feedback ticket about it as it does not work in arma 3 that way. And it is assigned. http://feedback.arma3.com/view.php?id=5126 Share this post Link to post Share on other sites
dr_strangepete 6 Posted September 14, 2013 (edited) did you take a look at the actual function in the functions viewer? that is why it doesnt work like a2, its not written the same. appreciate you posting the ticket link still -- edit: seems like ive misunderstood the functions described 'return'; playVideo also returns true/false, but is still spawned with a returned script handle instead...my b Edited September 15, 2013 by dr_strangepete Share this post Link to post Share on other sites
b00tsy 28 Posted September 14, 2013 Well actually, I just had a look and it can be found in the function viewer, can't copy/paste it unfortunately. Also haven't tried to get it working yet, but it is indeed there in the viewer. Share this post Link to post Share on other sites
Sasuke 1 Posted September 15, 2013 I was unable to locate it in the functions viewer... I'm kind of new to A3's editor. Can anyone post the script once acquired? Share this post Link to post Share on other sites
b00tsy 28 Posted September 15, 2013 The weird thing is that the playvideo function still works exactly the same as in arma 2 including the 'scriptdone'. I messed around with the GPS for an hour yesterday and was able to get rid of the error, but the video just wont run. Sasuke, you will find the video function in the long list and the script, it can't be copy/paste unfortunately. Share this post Link to post Share on other sites