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 / [LOCKED] Does Anyone Have A Door Always Open Script?

Author
Message
Bmxerlmao5288
14
Years of Service
User Offline
Joined: 24th Oct 2010
Location:
Posted: 31st May 2011 03:08
I want a script that the door is always open so that the Zombies in my game can walk through into the house to attack me. all i want is the door to always be open. Does anyone have one?

Chris Fleming. Model And Game Maker.
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 31st May 2011 05:45
Quote: "I want a script that the door is always open so that the Zombies in my game can walk through into the house to attack me. all i want is the door to always be open. Does anyone have one?
"


If you don't need the door to ever be closed you could just delete the door entity and leave the frame. That way the hole will be in the wall but the door won't be in the way. Just right click the door in the editor, and hit delete.

Your sig has been redacted by...
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 31st May 2011 06:09
Rummages into his large collection of scripts...

Here is one I use:



I attach the above script to the door's AI Main script field. The door will be open when the level starts.

Hope that helps.

- BlackFox

The function of good software is to make the complex appear to be simple.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 31st May 2011 06:14
Alternatively, you can click the door entity in the editor, press y to make it static, and rotate it manually in the frame to the open position you desire. Then there will be no script associated with it. By the same method, you could place the door on the ground like it was knocked off or lean it on a nearby wall for aesthetics.

Brian.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 10th Jun 2011 19:31
Please read this thread.

I reject your reality and substitute my own...

Login to post a reply

Server time is: 2024-11-24 09:08:44
Your offset time is: 2024-11-24 09:08:44