Edit: Fixed my first problem but i don't want you to be able to load entities on top of each other, so i tried to use scan texture for the warlock model but i cant get it too work so if anyone could help me out that would be very helpful. I have the general idea i am probably just missing one thing.
So this is my attempt after all the vector stuff:
c_trace (camera.x,mouse_click,IGNORE_PASSABLE | SCAN_TEXTURE | IGNORE_MODELS);
string model_name = "warlock.mdl";
if ((str_cmpi (model_name,tex_name)) ==0 )
{
ent_create ("warlock.mdl" , target.x,NULL);
}
this all works for creating the entity but it will still make it even if im on top of another one which is what im trying to make it not do. Also im using c-script. Thanks.
Last edited by halfpint; 07/14/08 08:55.