Create an Elevator

From CryWiki

Jump to: navigation, search

Place an Elevator and ElevatorSwitches entity in the level

RollupBar→Entity→Elevators

Choose a model for the Elevator in the Entity Properties.

Here are a couple of settings i'll explain for the Elevator Entity: Elevator Entity Settings:

Automatic
This needs no switch. If you are going on your elevator platform, it will automatically move to the DestinationFloor, and it will go back in his InitialFloor position. But here, you are able to use switches too.
DestinationFloor
Number of your floors minus 1 The lowest floor is 0
FloorCount
Number of your floors
FloorHeight
height of the floors
InitialFloor
Example: Place your elevator platform at floor 2 and set the InitialFloor also to 2. So if you want to "drive" to floor 5, press the floor 5 switch (switch5 has setting: floor = 4), the elevator goes up 3x FloorHeight. So the elevator starts his journey from this floor you set in InitialFloor! (lowest floor = 0)
Axis
Specifies which axis the elevator moves in. For vertical elevators, set it to Z.
StopTime
Creates a cushion effect on the elevator. A higher value causes the elevator to stop slower and smoother.
Note
Everytime you change the position of the elevator, you need to press Reload Script of your elevator entity in the RollupBar

Now create some switches. For example for 3 floors, you need 3 switches. You'll see a yellow ball. You need to assign a model (Entity Properties).

Now you have to set for each switch the elevator entity as target.

Choose a switch, go to RollupBar, click Pick Target and click on your elevator platform. Rename the target link of each switch to "up" or "down".

For the entity properties of the switches set the floor property of the switch floor0 to 0, the floor property of floor1 switch to 1 ...etc

Set the entity properties of the elevator: DestinationFloor = 2

FloorCount = 3

FloorHeight = 3 (<- for example)

InitialFloor = 0 (if you want the platform to begin on the lowest floor)

Note
If you want that the switches moves simultaneously to the elevator, just hit the button Link Object and "drag" each switch to the elevator.
Personal tools