CMultiStateMoverButton

From The DarkMod Wiki
Jump to navigationJump to search

CMultiStateMoverButton

The corresponding entityDef is atdm:mover_elevator_button.

This is a special button, designed for making the elevators move to a specific position.

Each MultiStateMoverButton carries the information about the elevator’s target position in its spawnargs (”position” = “first_floor”). The name refers to the MultiStateMoverPosition entity.

There are two different flavours of buttons, namely “ride” and “fetch” which are queried by the AI to know how to properly use the elevator.

Spawnargs

  • ride (1/0) Set to 1 if this button should be used by an AI to get the elevator moving.
  • fetch (1/0) Set to 1 if this button should be used by an AI to fetch the elevator from another floor.
  • position (name) Names the position the elevator should move to. The name refers to the MultiStateMoverPosition entity.

Script Events

  • <same script events as CFrobButton>

C++ Methods and Events

  • <no special events>