S3VDIT0 wrote:I understand you. What do you think is it possible to calculate all the Entity and read their Fields?
Let's say this way:Code: Select all
for (int i = 0; i < 2048; i++)
{
Entity entity = Call<Entity>("getentbynum", i);
using (StreamWriter sw = new StreamWriter("scripts\\AllEntity.txt", true))
{
sw.WriteLine(/* Ex: entity.GetField<string>("name")> */);
}
}
So the idea is you can compute Fields to the existing objects on the level, but these are just my guesses, which probably will not work...
I haven't tested this but you should be able to read the amount of entities in the level from 0x1B01C88:
Code: Select all
private static int GetEntityCount()
{
var ptr = new IntPtr(0x1B01C88);
return Marshal.ReadInt32(ptr);
}