Why does that don`t work?
:

______________________________________________________________________________
#include <IntenseX.h>//I know this is not the problem


ENTITY* eBall;


void main()
{
video_mode = 10;
video_screen = 1;
shadow_stencil = 3;

ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0);
sky.z = 30;
}

action rock()
{
set(my,POLYGON);//I know this is not the problem
set(eBall,SHADOW);
phent_settype(eBall,PH_RIGID,PH_BOX);
phent_setmass(eBall,50,PH_BOX);
phent_setfriction(eBall,48);
phent_setelasticity(eBall,15,10);
phent_setdamping(eBall,20,20);
ph_setgravity(vector(0,0,-600));
}

Without action rock() and ENTITY* eBall; works evrything fine.

But wenn I open The level, it gives me for every model that I gave the action (action rock) an error:

//crash with rock!//

What is wrong???

Last edited by MDMDFSS; 06/08/09 11:46.