Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vertical door starting open?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Vertical door starting open?

As the topic says, is there a way for a vertical door to begin the map open? Til now I've just been opening it at the very start of the level with SetMoveObjectState, but now it's a problem as I have one right in front of the player at the start of the map that I want to already be open. With my method, it will start close and then open in front of the player when the map starts.

10-17-2012, 07:47 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Vertical door starting open?

If you don't need it to be functional, you can just have a static door moved to the upper position. On second thought, it could be function if switch it out with a normal vert door while the player can't see it (i.e. after the player passes through the doorway).

Alternatively you could do a fade in long enough to cover the action of the door moving up in the very beginning.

I rate it 3 memes.
10-17-2012, 07:56 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Vertical door starting open?

You could move it up in the level editor and ticking static physics.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-17-2012, 08:47 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Vertical door starting open?

You should be able to set what state it should be on by default in the model editor.

Tutorials: From Noob to Pro
10-17-2012, 09:14 AM
Website Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#5
RE: Vertical door starting open?

void SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);

Same thing as SetMoveObject, but you can set the speed with which it moves, so you can set the speed and acceleration ludicrously high so it opens faster than the player can see it.

[Image: signature-2.png]
10-17-2012, 05:37 PM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#6
RE: Vertical door starting open?

Go to the Level Editor. Click the door you want to edit. Then you click on the "entities" tab. Go to the "OpenAmount" thing and insert a number between 0-1. 1 is open and 0 is closed.
[Image: 8OVLE.png]

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
10-17-2012, 07:36 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: Vertical door starting open?

(10-17-2012, 07:36 PM)GoranGaming Wrote: Go to the Level Editor. Click the door you want to edit. Then you click on the "entities" tab. Go to the "OpenAmount" thing and insert a number between 0-1. 1 is open and 0 is closed.
You cannot do that with the safety_normal_vert

Trying is the first step to success.
10-17-2012, 07:47 PM
Find




Users browsing this thread: 1 Guest(s)