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 / Glitching Auto Door

Author
Message
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 18th Mar 2011 03:54
OK another help request post. I am making an Abandoned/Infested X Labs game. I need the abandoned feeling. So what better way to have a sparking door that's opening and closing by itself. I do not know how to do this. I want the door to open and close from wherever the player is. Also I want to set different door times. So a path can be blocked by a fast door that open and closes to fast for anyone to get in but another path could be the same door but opening and closing slower. Any ideas?

War Doesn't Make boys men, it makes men dead.
JAZZIST productions
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 18th Mar 2011 22:35
make an invisible charactor and set him on a way-point line going to and fro from the door. Every time he goes up to the door it opens, and every time he goes away it closes. This is the simplest way but definatly not the best. If you stick the waypoint directly infront of the door you might run into your invisible person, and there's even the ability to kill him and the doors won't open and close repeatedly.
I would seggest you just edit the doors scripts. Their are actions for opening and closing doors, but i'm unsure of timers (haven't been on the forums, and don't know if through updates they've added that) but I'm sure if you have a quick search / google you'll be able to find out.

I PLAY JAZZ!
i know, i'm a very problemed child...
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Mar 2011 23:12 Edited at: 19th Mar 2011 00:16
Try this:



Hope it helps.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 18th Mar 2011 23:31
where do I put the script?

War Doesn't Make boys men, it makes men dead.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Mar 2011 23:37
As part of the Doors MAIN script.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 18th Mar 2011 23:40 Edited at: 18th Mar 2011 23:42
...set it as the door's main script.

Quote: "...I want the door to open and close from wherever the player is. Also
I want to set different door times. So a path can be blocked by a fast door that
open and closes to fast for anyone to get in but another path could be the same
door but opening and closing slower..."


While it will open & close the door randomly, that particular script will not
recognize the player's position, or adjust its speed accordingly.

MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 18th Mar 2011 23:50 Edited at: 18th Mar 2011 23:52
I did I replaced dooruse with it but when I start it doesn't do anything. btw this is with the Scifi tele whatever door.

EDIT: has anybody tried this yet besides me because its not working for any door.

War Doesn't Make boys men, it makes men dead.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 19th Mar 2011 00:15
Quote: "While it will open & close the door randomly, that particular script will not recognize the player's position, or adjust its speed accordingly."


True - I was just curious to see if a random door would work.

I've spotted my mistake - the original post has been edited.

Here's one with a set speed:



This doesn't react to player position, but I believe the OP wants a set speed for various doors, not one that reacts to player position. To change the open-close delay, change the "etimergreater=" value. It's currently set at 500ms.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 19th Mar 2011 02:25
OK this one worked.. sorta. as I walked up to it it spazzed out like I wanted but I walk away the open and closing stops. I want it to keep opening and closing wherever the player is. When I go back near it it starts working as it should. How can I fix the error with the stopping as player walks away?

War Doesn't Make boys men, it makes men dead.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 19th Mar 2011 09:24
That is very strange - the script shouldn't be influenced by the player's position, it should just open and close every second.

Hopefully someone can point out what I'm missing.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 20th Mar 2011 01:35
@Ched80 i think it must be always active (i tried with my script:
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Mar 2011 07:33
Cheers frafra_95,

I set the door to always active and the script worked fine.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 21st Mar 2011 07:51
so what do I do?

War Doesn't Make boys men, it makes men dead.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Mar 2011 13:18
@MaimedSoldier

right-click (assuming you're right handed) on the door to open its settings. Change "Always Active" to Yes. Click apply changes and Robert is your father's brother!
Voila.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
MaimedSoldier
14
Years of Service
User Offline
Joined: 2nd Nov 2010
Location: In The Matrix
Posted: 23rd Mar 2011 03:58
ty ill try in a little

War Doesn't Make boys men, it makes men dead.

Login to post a reply

Server time is: 2024-11-24 10:31:44
Your offset time is: 2024-11-24 10:31:44