Scripts / Stopping Video files from playing

Author
Message
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 16th Jul 2016 17:41
I have a Cut scene and want to give the player the option of skipping this once it starts playing. StopVideo(e,1) doesn't seem to work and nothing will interrupt the video until it has reached it s end in standalone.

Any one got any workarounds or ideas?
MStockton
9
Years of Service
User Offline
Joined: 28th Apr 2015
Location: Texas & Finland
Posted: 17th Jul 2016 14:10
I've only tried in testing and not a standalone game, but a simple Left Click ends the video by default.
PM
MStockton
9
Years of Service
User Offline
Joined: 28th Apr 2015
Location: Texas & Finland
Posted: 17th Jul 2016 14:17
Sorry but I guess my posts are all still moderated so I couldn't edit my previous reply. (Maybe a moderator can merge them?)

Anyway, I did make a standalone and had the same issue. I hope you get it solved and reply here if you do or not. I haven't used video for anything major yet but I do hope to soon.
PM
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 17th Jul 2016 18:04
Thanks for the reply to both Pete and Pete - Yeah in editor mode its the left click but as you say this doesn't stop the video in stand-alone - anyone else have any ideas?
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 17th Jul 2016 18:12
This function exists with the global.lua file,

function StopVideo(e,v)
SendMessageI("stopvideo",e,v);
end

not exactly sure how to use it
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 18th Jul 2016 00:08
Hi Nathan, thanks for the reply - that was my point and indeed that was what I have attempted to us but sadly the StopVideo call doesn't interrupt the video whilst playing.
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 19th Jul 2016 17:25
I have noticed this issue. I think the left-click used to work. Not sure what went wrong.
Julian
PM
str8savagem8
Reviewed GameGuru on Steam
8
Years of Service
User Offline
Joined: 17th Nov 2015
Location:
Posted: 20th Jul 2016 06:01
You use the space bar now. The audio doesn't seem to stop when you do it though.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 27th Jul 2016 22:58
Yes, I can confirm this is a double bug with the StopVideo not ending the video immediately, and the standalone not responding to an early click out. I have added this report to the V1.14 tweak list, thanks!
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 28th Jul 2016 00:12
Super smashin' great !!

Login to post a reply

Server time is: 2024-05-03 21:31:29
Your offset time is: 2024-05-03 21:31:29