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


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
could someone help me out with this script\editing
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: could someone help me out with this script\editing

In the level editor you only need 2 things for this to work:

static objects>machine>elevator
entities>special>elevator_wall01


Before I continue, I should tell you how it works. The actual elevator stands still (it is a static object), and the wall (which is a very large wall if you see it in the elevator) moves up or down, using a very specific script function. The elevator is a lie.

The function to use is:

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


If you want the exact speed of the elevator used in the original game, you can use:

SetMoveObjectStateExt("Name_Of_Wall", 1, 2, 0, 0.2f, true);


To sell the effect that the elevator's moving, you can use particle systems to create sparks where the elevator connects with the wall and various sound effects.

Hope that helped.

I rate it 3 memes.
08-23-2012, 08:20 PM
Find


Messages In This Thread
RE: could someone help me out with this script\editing - by Adny - 08-23-2012, 08:20 PM



Users browsing this thread: 2 Guest(s)