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
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#1
could someone help me out with this script\editing

Elevator help..
Who would like to help me out with a moving elevator...
Maybe one of u would like to help me or be in my team..
PS: ADVANCES USERS\BUILDERS ONLY!!!
ADD ME ON SKYPE : redmaster12345
sorry for this... but need someone with experience..
THANKSSS
Greets Lange..
08-23-2012, 05:05 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: could someone help me out with this script\editing

You could have just waited for a moderator to move the other thread to this section. Traggey would have moved it here.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-23-2012, 05:08 PM
Website Find
Theforgot3n1 Offline
Member

Posts: 192
Threads: 20
Joined: Apr 2012
Reputation: 6
#3
RE: could someone help me out with this script\editing

In case you might want to understand yourself, or you're unable to get help from a builder, I can tell you that it's an awful lot easier to script and built the elevator than you'd think.
Open the "elevator.hps" in "redist" > "maps" > "Ch1", and the level editor map - you might learn to script it yourself.

It works with one function similarly to the metal vet (elevators) in Cistern Entrance.

Confusion: a Custom Story - Ch1 for play!
http://www.frictionalgames.com/forum/thread-15477.html
About 50% built.
Delayed for now though!
08-23-2012, 06:49 PM
Website Find
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




Users browsing this thread: 1 Guest(s)