A static detail model. More...

Public Member Functions | |
| boolean | IsPlayingAnim () |
| Returns whether the animation sequence is currently playing. More... | |
| PlayAnim (boolean play) | |
| Plays or halts the animation sequence. More... | |
| number | GetSequNr () |
| Returns the number of the current animation sequence. More... | |
| SetSequNr (number SequNr) | |
| Sets the sequence number. More... | |
| RestartSequ () | |
| Resets the frame counter of the currently playing (or halted) sequence to 0. More... | |
| number | GetNumSequences () |
| Returns the number (an integer) of animation sequences that are available with this static detail model. More... | |
Public Member Functions inherited from BaseEntityT | |
| string | GetName () |
| Returns the name of this entity. More... | |
| x y z | GetOrigin () |
| Returns the origin of this entity as a triple of numbers. More... | |
| SetOrigin (number x, number y, number z) | |
| Sets a new position for this entity. More... | |
A static detail model.
A static detail model adds geometric detail to a map and can optionally hold a scripted GUI that the user can interact with. Despite its name, a static detail model can run animated sequences, but note that these animations are essentially a client-side effect only, as only a restart of a sequence is sync'ed over the network.
static_detail_model | number GetNumSequences | ( | ) |
Returns the number (an integer) of animation sequences that are available with this static detail model.
| number GetSequNr | ( | ) |
Returns the number of the current animation sequence.
| boolean IsPlayingAnim | ( | ) |
Returns whether the animation sequence is currently playing.
When the animation sequence is playing, the frames of the sequences are advanced over time normally. Otherwise, the animation is halted and kept still.
true if the animation sequence is playing, false if it is halted. | PlayAnim | ( | boolean | play | ) |
Plays or halts the animation sequence.
| play | If true, the animation sequence is played normally. If false, the frames are no longer advanced over time and thus the sequence is kept still. |
| RestartSequ | ( | ) |
Resets the frame counter of the currently playing (or halted) sequence to 0.
| SetSequNr | ( | number | SequNr | ) |
Sets the sequence number.
It also resets the frame counter back to 0, that is, the new sequence is played from the beginning.
| SequNr | The number of the new animation sequence to use. |