what is wrong with how I applyed what said?
I just took the sample moving ball from the the tutorial.
You can sub my tga with anything if you want to test it out.
I was trying to attach the entity to the ball.



///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
#include <atypes.h>
///////////////////////////////////////////////////////////////

VECTOR ball_force;
ENTITY* ball;
var timetocallsprite;
BMAP* bmp_explo = "thrpink3+3.tga";
ENTITY* ent_explo;


function yourscript()
{
while(1)
{
if (timetocallsprite == 1)
{
ent_create("thpink+3.tga", vector(my.x, my.y, my.z), NULL);
ent_explo.roll = 0.001;
}
wait(1);
}
}


function main()
{
level_load("roller.wmb");
ball = ent_create ("ball.mdl", vector(-400, 0, 100), yourscript);
ph_setgravity (vector(0, 0, -386));
phent_settype (ball, PH_RIGID, PH_SPHERE);
phent_setmass (ball, 3, PH_SPHERE);
phent_setfriction (ball, 80);
phent_setdamping (ball, 40, 40);
phent_setelasticity (ball, 50, 20);
while (1)
{
ball_force.x = 150 * time_step * (key_cur - key_cul);
ball_force.y = 150 * time_step * (key_cuu - key_cud);
ball_force.z = 0; //
phent_addtorqueglobal (ball, ball_force);
camera.x = ball.x - 300;
camera.y = ball.y;
camera.z = 1000;
camera.tilt = -60;
wait (1);
}
}