MagnateSnake13
Veteran
- Messages
- 25
- Reaction score
- 9
- Points
- 783
Code:
Spawn_Link_Dog()
{
self endon("disconnect");
self endon("End_Link_k9");
if(self.LinkDog==0)
{
self iprintln("^5Link K9^7: [^2Enabled^7]");
for( ;; )
{
self.LinkDog=1;
dog_spawner = GetEnt( "dog_spawner", "targetname" );
level.dog_abort = false;
direction = self GetPlayerAngles();
direction_vec = AnglesToForward( direction );
eye = self GetEye("5");
scale = 80;
direction_vec.self = ( direction_vec[0] * scale, direction_vec[1] * scale, direction_vec[2] * scale );
trace = bullettrace( eye, eye + direction_vec, 0, undefined );
nodes = GetNodesInRadius( trace["position"], 256, 0, 128, "Path", 8 );
dog = dog_manager_spawn_dog( self, self.team, node, 5,9,6 );
dog attach(self.model);
dog linkTo(self,"",(100,45,20),(0,360,0) 9,0); //////////////////////////////////////////////////// Error syntax why? here
dog.maxhealth = 999999;
dog.health = dog.maxhealth;
dog waittill("death");
self.LinkDog=0;
self notify("End_Link_k9");
}
}
else
self iprintln("^1Link K9 Already Spawned");
}
Last edited by a moderator: