find() map entitites in CSQC
Posted: Sat Sep 05, 2015 3:26 pm
In FTEQW, I'm doing something like
But csqc places the entity always at 0 0 0 (also cprint said that).
I print that code in CSQC_Init, but I think that's pretty useless where I execute that
In map there's an entity my_spawning_point. Infact in SSQC it works. How is it possible to find map entities in CSQC?
Thanks in advance guyyyys!!
Code: Select all
local entity e = find(world,classname,"my_spawning_point");
myentity = spawn();
setorigin(myentity ,e.origin);
myentity.origin = e.origin;
cprint(vtos(e.origin));
setmodel(myentity ,ENEMY_MODEL);
myentity .drawmask = MASK_NORMAL;
myentity .movetype = MOVETYPE_STEP;
myentity .solid = SOLID_BBOX;
myentity .predraw = EnemyPredraw;
I print that code in CSQC_Init, but I think that's pretty useless where I execute that
In map there's an entity my_spawning_point. Infact in SSQC it works. How is it possible to find map entities in CSQC?
Thanks in advance guyyyys!!