Make a player sit.
local seat=thisObject.Children[0].Seat
function Seat()
seat.SitPlayer()
Make a player unseat.
local seat=thisObject.Children[0].Seat
function UnSeat()
seat.UnseatPlayer()
Whether the seat component is enabled.
Space.Log(seat.Enabled)
Return that whether the seat is in use.
local seat=thisObject.Children[0].Seat
function InUse()
local inUse=seat.InUse
Space.Log(inUse)
Return the ID of the seating player.
local seat=thisObject.Children[0].Seat
function PlaySeated ()
local playSeated=seat.PlayerSeated
Space.Log(playSeated)
Return true if uses SlotID
local seat=thisObject.Children[0].Seat
function UseSlotID ()
local useSlotID=seat.UseSlotID
Space.Log(useSlotID)
Return the slot ID of the seat.
local seat=thisObject.Children[0].Seat
function SlotID ()
local slotID=seat.SlotID
Space.Log(slotID)
Return the clickable collider.
local seat=thisObject.Children[0].Seat
function ClickableCollider()
local clickcoll=seat.ClickableCollider
Space.Log(clickcoll.Enabled)
Return the animation clip.
local seat=thisObject.Children[0].Seat
local animation=seat.Animation
Space.Log(animation.Name)
Return the animation clip.
local seat=thisObject.Children[0].Seat
local animation=seat.AnimationMale
Space.Log(animation.Name)
Return the animation clip.
local seat=thisObject.Children[0].Seat
local animation=seat.AnimationFemale
Space.Log(animation.Name)
|