iscenenode

Contents

Name Description
getang( angle )

Set the rotation of a scene element.

getmaterial( )

Gets the material of a scene element.

getmaterialcount( )

Gets the number of materials on a scene node.

getname( name )

Get the name of this scene element.

getpos( )

Get the position of a scene element.

getscale( )

Get the scale of this scene element.

setDebugDataVisible( )

Sets the debug flag for this object

setmaterial( texture )

Set the mateiral of a scene element.

setmaterialflag( flag , on )

Sets a flag on the material

setname( name )

Set the name of a scene element.

setpos( position )

Set the position of a scene element.

setscale( scale )

Set the scale of this scene element.

setvisible( visible )

Sets the visibility of this scene element


getang( angle3d angle )

Set the rotation of a scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:67


getmaterial( )

Gets the material of a scene element.

To check if to materials are equal, compare their .texture fields, these hold a light userdata.

Returns

Defined at client/lua_api/scene/igeneric.cpp:84


getmaterialcount( )

Gets the number of materials on a scene node.

Returns

Defined at client/lua_api/scene/igeneric.cpp:111


getname( string name )

Get the name of this scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:187


getpos( )

Get the position of a scene element.

Returns

Defined at client/lua_api/scene/igeneric.cpp:23


getscale( )

Get the scale of this scene element.

Returns

Defined at client/lua_api/scene/igeneric.cpp:260


setDebugDataVisible( )

Sets the debug flag for this object

Defined at client/lua_api/scene/igeneric.cpp:275


setmaterial( texture texture )

Set the mateiral of a scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:144


setmaterialflag( number flag , boolean on )

Sets a flag on the material

Parameters

Defined at client/lua_api/scene/igeneric.cpp:127


setname( string name )

Set the name of a scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:169


setpos( vector3d position )

Set the position of a scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:38


setscale( vector3d scale )

Set the scale of this scene element.

Parameters

Defined at client/lua_api/scene/igeneric.cpp:204


setvisible( boolean visible )

Sets the visibility of this scene element

Parameters

Defined at client/lua_api/scene/igeneric.cpp:222