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 / 2 keys in one level

Author
Message
Forumtrol
16
Years of Service
User Offline
Joined: 21st Dec 2007
Location:
Posted: 23rd Jan 2008 19:37
Hello

I got a problem I'll tell you what I have:

Beginning
- 1 key for opening a door (first key I use in level)
later
- 1 key for activating a switch which opens a door (second key I use in level)

My first key works but later when I want to use my second key it doesnt work. My scripts and settings of all entities are 100% right. Can you guys tell me whats happening please?
Is it even possible to use 2 keys in one level?

Thanks for reading please reply!

-Nigel

Need scripts?!
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 23rd Jan 2008 20:19
Change the Key name in The Editor Like this.

*fig 1*

Attachments

Login to view attachments
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 23rd Jan 2008 20:24
*Fig 2*

We change the door settings

Attachments

Login to view attachments
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 23rd Jan 2008 20:30
*Fig3*

The final Thing!

Attachments

Login to view attachments
Forumtrol
16
Years of Service
User Offline
Joined: 21st Dec 2007
Location:
Posted: 23rd Jan 2008 22:44
The settings are ok because if I delete the key for the door out of the game, the key to activate the switch is working but WITHOUT deleting the key for door, the key to activate switch ain't working..

Its like I have to change from key in game like a weapon or so.. settings are alrite! but thx for your help!

Need scripts?!
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 24th Jan 2008 18:57 Edited at: 24th Jan 2008 19:07
For the second question:

I attached a script. Replace the main script of the switch with the attached one.

Configure settings:
Name -> switch1
Use key -> key10 //The name of the key
If used -> door1 // the name of the door
Main -> browse here the script i attached

Place a door, right click on this door then configure settings:
Name -> door1
Main -> Browse for "doorremote.fpi" script in scriptbank folder

Finally place a key and rename it to key10

Attachments

Login to view attachments
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 24th Jan 2008 19:58
Oh I forgot to mention: This script above i posted is working only with switches using alt text (alternate texture) when animating.

If you are using a switch which using frame method like sci-fi switch7 from stock media you will need a new script. (Attached)

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-27 12:35:39
Your offset time is: 2024-11-27 12:35:39