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 / Play Video When the Game Completes

Author
Message
GraPix
User Banned
Posted: 30th Apr 2009 08:32
i am wondering how to play a video after or just before the game completes. i am not using win zone. i am using objective to kill 3 enemies and the level completes, but how to add a video when the player win.

If a script out there for this, plz post it.

Thanks!

GraPix Entertainment
djmaster
User Banned
Posted: 30th Apr 2009 08:51 Edited at: 30th Apr 2009 09:01
Through scripting like you step in a trigger zone with a script that plays the video,starts a timer,when the timer equals the lenght of the video it ends game.

EDIT: I noticed you are on the objective win.Modify each enemies script to add winvar +1,then if winvar=3,play video,start timer,timer equals video lenght,endgame.

A.K.A. chargerbandit
http://chargedstudios.fpschost.com/
GraPix
User Banned
Posted: 11th Jun 2009 17:53
there is no "winvar" command or action (i looked into FPI EditPad)

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 11th Jun 2009 18:06
Quote: "i am not using win zone. i am using objective to kill 3 enemies and the level completes, but how to add a video when the player win."


...here's a suggestion:

1. Set two of the three enemies as Objectives.

2. Set a Dynamic Immobile Entity as an Objective.

3. Set the (non objective) third enemy to spawn a Triggerzone, when killed.

4. Set the Triggerzone to play the video you wish displayed, and to kill the Dynamic Immobile Entity.

Just theory, but this should provide close to the illusion that you're after...all of the enemies are killed, a video plays, and the level ends...

GraPix
User Banned
Posted: 11th Jun 2009 18:21 Edited at: 11th Jun 2009 18:29
@Seth Black Thanks...

Bumping always works..

EDIT: How to make the third entity spawn trigger when killed?

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 11th Jun 2009 18:32 Edited at: 11th Jun 2009 18:35
Quote: "How to make the third entity spawn trigger when killed?"


...through .fpi scripting.



Name the Triggerzone as the Third Enemy's IFUSED target...

GraPix
User Banned
Posted: 11th Jun 2009 18:35 Edited at: 12th Jun 2009 11:28
@Seth Black Thanks....

EDIT:
Quote: "Third Enemy's IFUSED target"
Enemy characters have IFUSED field for me to type in? I don't think so...

i'm a bit confused

Your signature has been erased by a mod - please make it no larger than 600x120, thanks

Login to post a reply

Server time is: 2024-11-25 03:01:52
Your offset time is: 2024-11-25 03:01:52