Posted By: Frits
ent_create - 03/20/07 14:43
When I create a sprite with;
Code:
that works perfect, but now I want to remove the sprite again because I want to create and show an other sprite in 'sign'.
I tried it with ent_remove, but that does not work, it has to be an entity.
Does anyone know how I can do that?
Code:
string sign; // declare an empty, unlimited string
funtion blabla()
{
..............
str_cpy(sign," "); // make the string empty
str_cpy(sign,"abc.bmp"); // set sprite in sign
ent_create(sign,vector(x,y,z)); // place sprite on screen
..............
..............
}
that works perfect, but now I want to remove the sprite again because I want to create and show an other sprite in 'sign'.
I tried it with ent_remove, but that does not work, it has to be an entity.
Does anyone know how I can do that?


