Getting one
scene:tileAt(…):getWallObject():getRenderable1()
scene:tileAt(…):getWallObject():getRenderable2()
scene:tileAt(…):getDecorativeObject():getRenderable()
Methods
| Method | Returns | Description |
|---|
getModel() | Model? | Its model now: the model itself (a copy) for a Model or a static loc's renderable, read when asked (in HD, the SD model rebuilt from the… |
|---|
getModelHeight() | number | Its height (Renderable.height): the model's height once its bounds are calculated, 1000 before. |
|---|
getAnimationHeightOffset() | number | How far its animation lifts it: for an animated loc's renderable (a DynamicObject) the vertical offset of the sequence it plays now, read… |
|---|
getRenderMode() | number | How the client draws it (Renderable.RENDERMODE_*), its own answer: 0 (RENDERMODE_DEFAULT) for a model, an animated or static loc's rend… |
|---|
Fields
| Field | Type | Description |
|---|
RENDERMODE_DEFAULT | number | Renderable.RENDERMODE_DEFAULT: 0. |
|---|
RENDERMODE_SORTED | number | Renderable.RENDERMODE_SORTED: 1. |
|---|
RENDERMODE_SORTED_NO_DEPTH | number | Renderable.RENDERMODE_SORTED_NO_DEPTH: 2, what a player answers. |
|---|
RENDERMODE_UNSORTED | number | Renderable.RENDERMODE_UNSORTED: 3. |
|---|
RENDERMODE_UNSORTED_NO_DEPTH | number | Renderable.RENDERMODE_UNSORTED_NO_DEPTH: 4. |
|---|
Method details
getModel: (Renderable) -> Model?
Its model now: the model itself (a copy) for a Model or a static loc's renderable, read when asked (in HD, the SD model rebuilt from the loc); for an animated loc's (a DynamicObject) the model it poses for the current cycle, built when asked (which moves its animation on to that cycle, as the next frame would; where the table has that read on, and the SD model in HD likewise); nil once the loc is gone and its renderable with it. A renderable held by address never builds an actor's model: that is the actor's own getModel().
getModelHeight: (Renderable) -> number
Its height (Renderable.height): the model's height once its bounds are calculated, 1000 before.
getAnimationHeightOffset: (Renderable) -> number
How far its animation lifts it: for an animated loc's renderable (a DynamicObject) the vertical offset of the sequence it plays now, read when asked (the client's own answer, which its draw takes off the loc's height); 0 for a model or a static loc's renderable, and while nothing plays. A model outline subtracts it from a loc's getZ().
getRenderMode: (Renderable) -> number
How the client draws it (Renderable.RENDERMODE_*), its own answer: 0 (RENDERMODE_DEFAULT) for a model, an animated or static loc's renderable; for a scene renderable that is an NPC or a player, theirs (Actor:getRenderMode()).