IsSeatOccupied - Actor
Revision as of 11:33, 18 August 2014 by imported>3Nd R1m (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script Check if this actor (which should be a mount with multiple "seats") has any actor sitting in a part...")
Member of: Actor Script
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.
Syntax[edit | edit source]
bool Function IsSeatOccupied(keyword apKeyword) native
Parameters[edit | edit source]
- apKeyword: The keyword representing the seat we want to check
Return Value[edit | edit source]
True if the "seat" represented by apKeyword has an actor fully seated in it (note that actors in the process of getting onto or off of the seat won't count)
Examples[edit | edit source]
; Does the vertibird currently have a pilot?
if Vertibird.IsSeatOccupied(pilotSeatKeyword)
Debug.Trace("The pilot is seated")
endIf