Cafu Engine
Cafu Engine Scripting
The open-source game engine and graphics engine for multiplayer, cross-platform, real-time 3D action
EntFuncMoverT Class Reference

An entity for moving objects like doors, lifts, platforms, etc. More...

Inheritance diagram for EntFuncMoverT:

Public Member Functions

 Translate (number x, number y, number z, number time)
 Linearly translates this entity to the given position over the given time. More...
 
 Rotate ()
 This method is not yet implemented. 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...
 

Detailed Description

An entity for moving objects like doors, lifts, platforms, etc.

To be used with scripting.

Map Editor Name:
func_mover
Implementing C++ Class:
DeathMatch::EntFuncMoverT

Member Function Documentation

Rotate ( )

This method is not yet implemented.

Translate ( number  x,
number  y,
number  z,
number  time 
)

Linearly translates this entity to the given position over the given time.

While a translation is in progress, no other translation can be filed (additional calls to Translate() are ignored).

Parameters
xThe x-coordinate of the position to translate the entity to.
yThe y-coordinate of the position to translate the entity to.
zThe z-coordinate of the position to translate the entity to.
timeThe time to take for the translation.