CMultiStateMoverButton: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
New page: == CMultiStateMoverButton == The corresponding entityDef is '''atdm:mover_elevator_button'''. This is a special button, designed for making the elevators move to a specific position. Eac...
 
mNo edit summary
 
Line 19: Line 19:
* <no special events>
* <no special events>


{{coding}} {{editing}}
{{sdk}} {{editing}}

Latest revision as of 07:43, 30 June 2008

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>