Class Objects.Static

Statics

Functions

Static:GetPosition() Get the static's position
Static:SetPosition(position) Set the static's position
Static:GetRotation() Get the static's rotation
Static:SetRotation(rotation) Set the static's rotation
Static:GetName() Get the static's unique string identifier
Static:SetName(name) Set the static's name (its unique string identifier) e.g.
Static:GetSlot() Get the static's slot number (as listed in Tomb Editor and WadTool)
Static:SetSlot(slot) Set the static's slot number (as listed in Tomb Editor and WadTool)
Static:GetColor() Get the static's color
Static:SetColor(color) Set the static's color


Functions

Static:GetPosition()
Get the static's position

Returns:

    Vec3 a copy of the static's position
Static:SetPosition(position)
Set the static's position

Parameters:

  • position Vec3 the new position of the static
Static:GetRotation()
Get the static's rotation

Returns:

    Rotation a copy of the static's rotation
Static:SetRotation(rotation)
Set the static's rotation

Parameters:

  • rotation Rotation the static's new rotation
Static:GetName()
Get the static's unique string identifier

Returns:

    string the static's name
Static:SetName(name)
Set the static's name (its unique string identifier) e.g. "my_vase" or "oldrubble"

Parameters:

  • name string The static's new name
Static:GetSlot()
Get the static's slot number (as listed in Tomb Editor and WadTool)

Returns:

    string the static's slot number
Static:SetSlot(slot)
Set the static's slot number (as listed in Tomb Editor and WadTool)

Parameters:

  • slot int The static's slot number
Static:GetColor()
Get the static's color

Returns:

    Color a copy of the static's color
Static:SetColor(color)
Set the static's color

Parameters:

  • color Color the new color of the static
generated by LDoc 1.4.6 Last updated 2022-07-31 20:38:24