Posted By: wacek
problem with ent_createlocal - 01/26/10 12:08
Hello
I have simple code for create entity, but not works and I have no idea why.
My model are in "models" folder.
as I run the program shows the error
"Can't open file"
I have simple code for create entity, but not works and I have no idea why.
Code:
#include <acknex.h> #include <default.c> #define PRAGMA_PATH "pix"; #define PRAGMA_PATH "maps"; #define PRAGMA_PATH "models"; ENTITY* postac1 = { type = "postac1.mdl"; layer = 2; x = 0; y = 0; z = 37; flags = SHOW; } function main() { level_load("level1.wmb"); //wczytuje pierwsza mape z wyborem postaci wait(-2); ent_createlocal(postac1, vector(0,0,37), NULL); }
My model are in "models" folder.
as I run the program shows the error
"Can't open file"