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 / Use Lightswitch to Play Video File and Spawn Enemies???

Author
Message
GLI Games
17
Years of Service
User Offline
Joined: 12th Mar 2007
Location: Fontana CA
Posted: 5th Nov 2008 20:26
So basically I want a light switch to open a door as well as turn on all lights in a certain area. Now, I am pretty sure I can do that by having all the lights and door be the same name and have the light switch activate items with that name.

That is pretty easy. But here is the catch. I ALSO want a video to play when I activate the light switch. Lastly, I want enemies to be spawned when I activate the light switch too. So altogether, I want a single light switch to turn on all the lights, open a single door, spawn enemies in the are, and play a video file.

Is that at all possible?

Visit us on the web at http://www.gli-games.co.nr/

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Nov 2008 02:04
Yup.

Make a new script for the "Story Zone". You can just change the one it uses to include a "activated=1" condition for playing the video.

Put the storyzone on top of where the switch is (so the player will be in it when they are pressing the switch) and give it the same name as the lights and door and enemies.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2024-11-24 13:42:15
Your offset time is: 2024-11-24 13:42:15