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!!
![Big Grin :biggrin:](./images/smilies/icon_biggrin.gif)