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()
Binds a function to the Seat's On Stand Up event
e = function() Space.Log("On Stand Up event") end Space.Host.ExecutingObject.Seat.OnStandUp(e)
Binds a function to the Seat's On Sit event
e = function() Space.Log("On Sit event") end Space.Host.ExecutingObject.Seat.OnSit(e)
Binds a function to the Seat's On Player Stand Up event
e = function() Space.Log("On Player Stand Up") end Space.Host.ExecutingObject.Seat.OnPlayerStandUp(e)
Binds a function to the Seat's On Player Sit event
e = function() Space.Log("On Player Sit event") end Space.Host.ExecutingObject.Seat.OnPlayerSit(e)
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)
|