Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Sasuke

ArmA 3 GPS Video

Recommended Posts

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

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

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

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

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 by dr_strangepete

Share this post


Link to post
Share on other sites

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

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

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
Sign in to follow this  

×