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 Product Chat / Entity disappearing after objective complete

Author
Message
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Aug 2007 01:18
Greets!

I have an iron grid / gate blocking a passageway (see attached) and I want it to 'open' (disappear) when a lever is pulled elsewhere. Could someone help me in the right direction?

Thanks.


Search for "HellHouse" in Showcase.

Attachments

Login to view attachments
uman
Retired Moderator
19
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 6th Aug 2007 01:21
Disappear as in forever? Use the destroy command.

"There are those who said this day would never come - What have they to say Now?"
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Aug 2007 02:05
That was quick! Thanks. Ok, I'm not 100% sure what I'm doing here but I've called the gate 'Prison Door' and used switch6 from SciFi Wall Furniture.

In the 'If Used' part of the switch I've put 'Prison Door' and I am using the following script in the 'Main' of the prison door:

-------------------------------------------------------------------
;Artificial Intelligence Script
;Header
desc = Remote Controlled Door (Destroy)
;Triggers
:state=0,activated=1:sound=$0, destroy
;End of Script
-------------------------------------------------------------------

In the switch script there is this 'activateifused=1' which I assumed would active 'Prison Door' in the 'If Used' part, which should then activate the script in the prison Door entity but it's not happening. Does it sound as confusing as I think it is? Can somebody please straighten this out for me?


Search for "HellHouse" in Showcase.
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 6th Aug 2007 05:34
I'm pretty sure you got that right. Haven't scripted for a while, so I can't be certain.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Aug 2007 15:53
Quote: "I've called the gate 'Prison Door' "


I'm not sure what you mean by gate. Is that a door and is it a dynamic entity?

The rest looks right.

Best.

I'm sorry, my answers are limited. You must ask the right question.

Login to post a reply

Server time is: 2024-10-09 21:27:08
Your offset time is: 2024-10-09 21:27:08