Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / entity to video script

Author
Message
riccetts
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 18th Apr 2013 21:38
I need a script for a sign where the player walks up on it and then shows "press enter" and then it plays a video or image.
Is this possible?
thanks
riccetts
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 19th Apr 2013 21:47
Edit:I made a wall picture and I want to attach a press enter script that will show a video when enter is pressed.
Is this code possible? If so could someone direct me to it if it exists?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 21st Apr 2013 00:30 Edited at: 21st Apr 2013 00:33
Hi riccetts
Its not that hard to script this. But first, do you want the video to play on the "wall picture" as an overlay or full screen?
If you want an overlay on the "wall picture" itself BlackFox has posted excellent scripts just for this here..http://forum.thegamecreators.com/?m=forum_view&t=192148&b=23&msg=2429889#m2429889
If you want full screen, use the "video=path" or "video=$0" action. I use the "video=$0" in my scripts as it seems easier.

Just attach your video to the entities "sound0" setting. In your case the "wall picture" sound0 setting.
The "state=11:stopsound=0" stops the video from looping.(plays once)

Hope this helps
best
riccetts
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 21st Apr 2013 02:40
@ncmako
Thanks, I had some of this but it didn't work.
riccetts
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 21st Apr 2013 04:03
@ncmako

I tried this code and I get nothing. I used video=$0 and my video next to the sound0 slot. I tested it and I get nothing.
Any Idea why this isn't working?
This is what I have:
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 21st Apr 2013 04:29 Edited at: 21st Apr 2013 04:34
@ riccetts
Are you attaching this script to the Main of your entity?(the wall picture) Is it Dynamic.(static will not work)
note: if it was static and you change it to dynamic make sure you also set it to "immobile" in settings or it will fall off the wall
riccetts
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 21st Apr 2013 04:53
Haha
thanks I just figured that out before you noted me.
I thought you need a command to use the enter button
like a scankeycode.
Thanks for the quick reply
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 21st Apr 2013 05:00
Glad you got it going.
best luck

Login to post a reply

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