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 / Script for opening a Door when 3 objects are destroyed.

Author
Message
Beavey
16
Years of Service
User Offline
Joined: 2nd May 2008
Location: 255.255.255.0
Posted: 3rd May 2008 11:31
Hello Everybody! I wanted to create a level in which the player had to destroy 3 entities in order to move to the next room. I was thinking of using this to create a tutorial level.
I found out a script written by Benjamin whom wanted the player to pick up 3 keys in order to open a door. I thought of changing this script to destroy the three entities. So I created 3 destroy scripts for the entities:
The following three destroy scripts must be applied in the Destroy script for teh three entities that must be destroyed. NOTE: All the three entities must have a different destroy script: Entity 1 must have Destroy script 1; Entity 2 must have Destroy script 2; entity 3 must have destroy script 3. You change the order, but it does not make any change as each entity must have a differeent one.

[DESTROY SCRIPT 1]



[DESTROY SCRIPT 2]



[DESTROY SCRIPT 3]



This is the script you must put in the MAIN AI script of the Remote door you want to open after haveing destroyed the three Entities. This script was initially created by Benjamin Aeilkema, and I give credit to him!

[Door Remote Main Script]



Let me know if everything works fine with you!
Beavey
ipod
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: haha!... i wont tell you....
Posted: 3rd May 2008 15:01
wow thanks

^^
Beavey
16
Years of Service
User Offline
Joined: 2nd May 2008
Location: 255.255.255.0
Posted: 3rd May 2008 16:56
Let me know if it works just fine

Login to post a reply

Server time is: 2024-11-24 08:10:28
Your offset time is: 2024-11-24 08:10:28