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 / Destory a selection of entities to activate a door

Author
Message
baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 7th Apr 2008 23:07 Edited at: 8th Apr 2008 12:01
I'm a bit stuck on some scripting, as I have no idea how to script properly! as it says in the subject, I need a script which will activate, not swing open, a normal door, when I have destroyed a particular amount of barrels in a range.

I have tried to I make a script for this, but the door doesnt seem to want to open, and I cant quite work out how to make multiple entities part of the remote door script



cheers in advance



www.the-anarchy.fusiveweb.co.uk
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 9th Apr 2008 09:27 Edited at: 9th Apr 2008 09:36
Well, I had done this in my first game. You can destroy three entities which will either destroy another entity or open a remote door.

This script is placed with the entity you wish to destroy.



The example destroys and activates another entity such as the remote door to open. This particular script has this in state 0: activateifused=1

In each of the other two you will change the number to 2 and 3. Also, put in the IFUSED parameter for each of the entities the name of the door you are to act upon.

The following script will open the remote door after all three (in no particular order) entities have been destroyed.



The above code will be placed in the door's main ai.
baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 9th Apr 2008 10:55
Thanks very much, I really needed that!



www.the-anarchy.fusiveweb.co.uk

Login to post a reply

Server time is: 2024-11-24 07:24:27
Your offset time is: 2024-11-24 07:24:27