I'm trying to make a video play after a set amount of time, so I looked up how to launch a video or sound from vscript. I put the GetPath(5) in the code like it says to, but it always gives me an error, so when I type the full path to the file (e.g. C:\Program Files\Adventure Maker v4.4.0\Projects\ProjectName\External\test.avi") it works. I know that this won't work in a compiled game, so I was wondering what other way I could do this to get it to work, since I'm assuming after trial and error that the GetPath(5) command is not working.
So far;
WORKS:
- Code: Select all
PlayVideo "C:\Program Files\Adventure Maker v4.4.0\Projects\ProjectName\External\test.avi", 0, 0, 640, 480, False
DOESN'T WORK (Automation Error, Unspecified Error):
- Code: Select all
PlayVideo GetPath(5) + "test.avi", 0, 0, 640, 480, False
And I've already put the code that the documentation said to in the global procedures so PlayVideo and PlaySound commands will work.
Thanks in advance
P.S. I should add that I am putting the code that I put in the code boxes (above) in the code space for the CreateTimedEvent command and I am using double quotes where applicable.