#include <acknex.h>
#include <default.c>
#define PRAGMA_PATH "%EXE_DIR%\templates\models";
void main()
{
level_load(NULL);
ent_create("sf_alien.mdl", vector(90,90,0), NULL);
ent_create("sf_alien.mdl", NULLVECTOR, NULL);
wait(2);
while (1)
{
draw_box3d(vector(-16,-16,-16), vector(16,16,16), COLOR_GREEN, 100);
if (view_check(camera,vector(-16,-16,-16),vector(16,16,16)) != 0) {
draw_text("IN VIEW",100,50, COLOR_GREEN);
}
draw_point3d(vector(0,-128,0), COLOR_RED, 100, 1);
if (view_check(camera,vector(0,-128,0),vector(0,-128,0)) != 0) {
draw_text("IN VIEW",100,80, COLOR_RED);
}
wait(1);
}
}