[various] GetVoxelProp(integer VoxelType, integer InfoNum)
Return informations about voxeltypes.
VoxelType : The Voxeltype on which you are querrying infos.
InfoNum : The type of the information you are querrying:
The response to your querry. Type and value depends on the question parameter InfoNum
// Listing #1: Get info about voxel on top of the robot.
Time <- 0;
function Voxel_Step()
{
local VoxelType, Info, DisplayResponse;
// The robot will play at 1 second interval.
if ( (GetGameTime() - Time) > 1000 )
{
// Look at the voxel on top of the robot and display infos about it.
VoxelType = Look(4);
Info = GetVoxelProp(VoxelType,0);
DisplayResponse = (Info) ? "YES" : "NO";
Display( "VOXEL ON TOP IS NONSOLID : " + DisplayResponse, 900, 2);
// Store actual timestamp for the next 1 second delay.
Time = GetGameTime();
}
}
Look()
GetVoxelName()