DynamicObject

Extends
Renderable
Methods
2
Fields
None

Methods

MethodReturnsDescription
getAnimation()Animation?The animation it plays now, read when asked; nil when it plays none, or once its loc is gone. getAnimation():getId() is the id `GameObj…
getModelZbuf()Model?Its model without the animation: nil while it plays a sequence; else its loc type's model for its shape, orientation and place (the type…

Method details

getAnimation

getAnimation: (DynamicObject) -> Animation?

The animation it plays now, read when asked; nil when it plays none, or once its loc is gone. getAnimation():getId() is the id GameObject:getAnimationId() answers in one call.

getModelZbuf

getModelZbuf: (DynamicObject) -> Model?

Its model without the animation: nil while it plays a sequence; else its loc type's model for its shape, orientation and place (the type its multiloc chooses now, contoured to the ground when the type is), a copy, as a static loc's renderable is (the SD model in HD). Also nil when its multiloc chooses no loc, once its loc no longer holds it, and off the client thread, where the client cannot build it.