Return various useful informations about everything. If there is some specific values that your program wish to know, its probably in this function. Some of these informations can only be got from the Voxel_Step() function.
Index : The code of the information you wish to obtain.
Depending on the index value, the returned information will be :
Index | Type | Voxel_Step() Only |
Info |
0 | integer | N | Max number for Index parameter |
1 | float | Y | Player Location (x) |
2 | float | Y | Player Location (y) |
3 | float | Y | Player Location (z) |
4 | integer | Y | Player Location (x) in Voxel Units |
5 | integer | Y | Player Location (y) in Voxel Units |
6 | integer | Y | Player Location (z) in Voxel Units |
7 | float | Y | Player Viewing direction (yaw) |
8 | float | Y | Player Viewing direction (pitch) |
9 | float | Y | Player Viewing direction (roll) |
11 | float | Y | Player Head Location (x) |
12 | float | Y | Player Head Location (y) |
13 | float | Y | Player Head Location (z) |
14 | integer | Y | Player Head Location (x) in Voxel Units |
15 | integer | Y | Player Head Location (y) in Voxel Units |
16 | integer | Y | Player Head Location (z) in Voxel Units |
17 | float | Y | Player Velocity (x) |
18 | float | Y | Player Velocity (y) |
19 | float | Y | Player Velocity (z) |
20 | string | N | File path separator character |
21 | integer | N | Blackvoxel's Version |
22 | integer | N | Actual Script Number |
23 | integer | N | Running Context :
0: Creation. The robot has been created. This state can be found in : Voxel_Load(). 1: Destruction. Robot is about to be destroyed. State can be found in : Voxel_Unload(). 2: Normal Step. The robot is doing normal step operation. State can be found in : Voxel_Step(). 3: Serialization. The robot is in loading/saving operation. State can be found in : Voxel_Load() (Means Loading) and Voxel_Unload() (Means saving). 4: Program Change. The program is changed in the human interface. Voxel_Load() and Voxel_Unload() |
24 | integer | Y | Robot Inventory Slot Count |
To do.
// Listing #1: Todo.
To do
GetInfoName()