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 / Destroy Multiple Objects to open a door

Author
Message
Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 23rd May 2007 02:03
Ok, I know how to rig it up so the player has to destroy a single object to open a door, but how can I rig it so the player has to destroy multiple objects?

Your signature has been erased by a mod
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 23rd May 2007 04:01 Edited at: 23rd May 2007 04:03
This tutorial will show you how destroying multiple objects can lead to opening a Remote Door Entity.
I wrote it so that the entities wont exist all at the same time. This way the Player will have to destroy the objects in order.

Let’s say you’re using only three objects that must be destroyed.
Box1, Box2, and Box3

Box1:

In the “Ifused” field of Box1, place the name of Box2.
In the Destroy script of Box1, Place the following command

:state=0:activateifused=1


Box2:

Set Box2 to always active= YES
Set box2 to spawn at start= NO

In the “Ifused” field of Box2, place the name of Box3.
In the Destroy script of Box2, place the following command

:state=0:activateifused=1


Box3:
Set Box3 to always active= YES
Set box3to spawn at start= NO

In the “Ifused” field of Box3, place the name of the Remote Door Entity.
In the Destroy script of Box3, place the following command

:state=0:activateifused=1

Good luck

Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 23rd May 2007 06:14
Only problem with that is the fact that the player has to destroy them in THAT particular order.

Your signature has been erased by a mod
Trinity Pictures
18
Years of Service
User Offline
Joined: 10th Nov 2006
Location: Leesburg, VA
Posted: 24th May 2007 08:43
[random]can someone please hurry up and make a cure for the common coder?[/random]
The sad truth is that there are limitations to the fpsc engine and it cannot do things that are commonly done in games today.
So instead of dwelling on these inconveniences, let's all chill and smoke some 'shrooms.

Artist/Modellor of Encrypto Studios
incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 29th May 2007 00:59
I have had shroom tea, shroom scrambled eggs and a ton of other shroom things. I have never smoked shrooms though.

It would be more fun if there were a specific order to go in and the entities could only be destroyed in order. If you tried to destroy them out of order then they just wouldnt be destroyed.

Peace

The person that now knows the most started with many questions. Patients and tolorance are the keys to the passage of knowledge. http://gamedesigntech.byethost7.com/

Login to post a reply

Server time is: 2024-11-23 18:03:06
Your offset time is: 2024-11-23 18:03:06