Intranet Catprocess
  1. news...
  2. about Blackvoxel
  3. download
  4. manual
  5. videos
  6. about us
  1. GetVoxelName

    Description

    string GetVoxelName(integer VoxelType)

    Return the name of a VoxelType.

    Parameters

    VoxelType : The Voxeltype on which you are querrying the name.

    Return Value

    A string giving the name of the voxeltype.

    Example of use

    // Listing #1: Voxel Analyser (Get info about voxel on top)
    
    Time <- 0; function Voxel_Step() { local VoxelType, VoxelName; // The robot will play at 1 second interval. if ( (GetGameTime() - Time) > 1000 ) { // Look at the voxel on top of the robot and display it's voxeltype and voxel name. VoxelType = Look(4); VoxelName = GetVoxelName(VoxelType); Display( "VOXEL ANALYSIS : (" + VoxelType + ") " + VoxelName, 900, 2); // Store actual timestamp for the next 1 second delay. Time = GetGameTime(); } }

    See Also

    Look()
    GetVoxelInfo()

     
  2. Google+