Type ChairGhost

Chair ghost, representing a TSCM chair tool seating position.

Methods

cameraDistance() Returns the current camera distance for the vehicle associated with this seating position, or 0 if no player is sat down.
driver() Returns the player that is currently sat in this seating position, or nil if no player is sat down.
getExitPos() Returns the currently configured exit position for the chair in world space.
passenger( index ) Returns the passenger of this seating position.
thirdPersonMode() Returns whether the vehicle associated with this seating position is in third person mode or not.


Methods

ChairGhost:cameraDistance()
Returns the current camera distance for the vehicle associated with this seating position, or 0 if no player is sat down.

Environment:

Shared
ChairGhost:driver()
Returns the player that is currently sat in this seating position, or nil if no player is sat down.

Environment:

Shared
ChairGhost:getExitPos()
Returns the currently configured exit position for the chair in world space.

Environment:

Server
ChairGhost:passenger( index )
Returns the passenger of this seating position. Note that the only valid passenger index is 0, for the player sat in the seat. This method is provided to match the Vehicle interface.

Environment:

Shared

Parameters:

  • (number) index: The 0-based passenger index to retrieve.
ChairGhost:thirdPersonMode()
Returns whether the vehicle associated with this seating position is in third person mode or not.

Environment:

Shared

Valid XHTML 1.0!