I am not 100% about the Skill Casting, but i am sure , it s possible.
Code not tested, just try...

Code:
#define EntGroup skill1

#define TypeLampFlare 1
#define TypeLamp 2


action Lamp()
{
	// ... set Lamp settings
	my.EntGroup= TypeLamp;
	my.skill3 = ent_create("LampFlare.mdl", vector, DoSomthing);
	
}

void Shoot()
{
	VECTOR vecShot;
	
   			   			   
   vec_set(vecShot, vector(1, 1, 1));	
   vec_rotate(vecShot, camera.pan);
	vec_add(vecShot, camera.x);
//   c_ignore(2,3,0);	      	      
   c_trace(camera.x, vecShot, IGNORE_ME|IGNORE_PASSABLE|IGNORE_SPRITES|SCAN_TEXTURE);			   	   
	
   if(TARGTE_HIT)
   {
      if(you.EntGroup == TypeLamp)
      { 
         if(you.skill3 != NULL)
       	 {
            ENTITY* ent = (ENTITY*)you.skill3;
            ptr_remove(ent);
         }
      }
   }		
}


Last edited by Ayumi; 03/07/18 08:20.