Spawn Bind

I'm using to spawn bind to spawn a fire attack but if the enemy is hit the attack continues for the duration of its lifespan also if the enemy changes direction while the attack is spawn it doesn't change its facing direction how can I fix these two issues?
 
Code:
bbox	16 3 43 104
	com	D U A2 freespecial3
	energycost	20
	mponly	1
	range	100 300
	delay	5
	offset	34 104
	frame	data/chars/hydra/sf/sa1.png
	delay	5
	offset	34 105
	sound	data/chars/ironman/Snd/rocketstart.wav
	frame	data/chars/hydra/sf/sg2.png
	delay	400
	offset	34 120
	@cmd	spawnbind "Flames" 40 85 1
	frame	data/chars/hydra/sf/sg1.png
	delay	5
	offset	34 105
	sound	data/chars/ironman/Snd/rocketstart.wav
	frame	data/chars/hydra/sf/sg2.png
	delay	5
	offset	34 104
	frame	data/chars/hydra/sf/sa1.png
 
Hmmm.... that looks like old spawnbind function, try using this one:

Code:
[code]void spawnBind(void Name, float dx, float dy, float dz, int Dir, int Flag)
{ // Spawn entity and bind it
   void self = getlocalvar("self");
   void Spawn;

   Spawn = spawn01(Name, dx, dy, dz);
   bindentity(Spawn, self, dx, dz, dy, Dir, Flag);
}
[/code]
 
Back
Top Bottom