Background for Starfield
Member of the Actor script
boolfunctionIsSeatOccupied(KeywordapKeyword)Native

Description

Wiki Description

Check if this actor (which should be a mount with multiple "seats") has any actor sitting in a particular seat or not. Note that this will not work for "vehicle drivers", like actors riding horses.

Documentation Comment

Is the seat that corresponds to the passed in keyword currently occupied?
note: if this is not a mount with multiple seats or apKeyword is not a valid seat, this function will return false


Parameters

  1. KeywordapKeyword

    CK Wiki Description

    The keyword representing the seat we want to check


Examples

; Does the vertibird currently have a pilot?
if Vertibird.IsSeatOccupied(pilotSeatKeyword)
  Debug.Trace("The pilot is seated")
endIf

Auto-Generated Example

Keyword myKeyword__apKeyword

bool returnedValue = myActor__toCallFunctionOn.IsSeatOccupied(myKeyword__apKeyword)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.