You must be logged in to do that.
FileWriteCHR
FileWriteCHR
void FileWriteCHR(int filehandle, int ent)
Documentation
Writes an on-map entity into a file handle open for writing. Fairly advanced, so this is only recommended if you plan on making a map editor within Verge or something. Although, you can't exactly manipulate the entity's image data at the moment, so this is also VERY limited.
Example Usage
int f = FileOpen("mychr.chr", FILE_WRITE);
if (f)
{
FileWriteEntity(f, 0);
FileClose(f);
}