1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
on:use { if ($staying=0) { $staying=1; ai_stay "self"; } elseif ($staying=1) { $staying=0 ai_mode "self","goto","unit" "1"; ai_center; } }
whats wrong here??
on:use { if ($staying=0) { $staying=1; ai_stay "self"; } elseif ($staying=1) { $staying=0 ai_mode "self","goto","unit" "1"; ai_center; } }
on:use { 	if ($staying=0){ 		$staying=1; 		ai_stay "self"; 	} 	elseif ($staying=1){ 		$staying=0 		ai_mode "self","goto","unit",1; 		ai_center; 	} }
### Hound id=73 name=Hound group=animal model=gfx\bb\hound.b3d icon=gfx\bb\hound.bmp colxr=10 colyr=10 behaviour=normal speed=2.2 eyes=10 health=100 damage=9 range=200 attackrange=20 maxweight=25000 loot=21,5 ani_move=2,4,0.09 ani_attack=14,19,0.1 ani_die=20,29,0.1 ani_idle1=5,14,0.09 sfx=hound script=start on:use { 	if ($staying=0){ 		$staying=1; 	ai_stay "self"; 	} 	elseif ($staying=1){ 		$staying=0 		ai_mode "self","goto","unit",1; 		ai_center; 	} } script=end
### Hound id=73 name=Hound group=animal model=gfx\bb\hound.b3d icon=gfx\bb\hound.bmp colxr=10 colyr=10 behaviour=normal speed=2.2 eyes=10 health=100 damage=9 range=200 attackrange=20 maxweight=25000 loot=21,5 ani_move=2,4,0.09 ani_attack=14,19,0.1 ani_die=20,29,0.1 ani_idle1=5,14,0.09 sfx=hound script=start 	on:use { 		$staying=1-$staying; 		if($staying==0){ 			ai_stay "self"; 		}else{ 			ai_mode "self","goto","unit" "1"; 			ai_center; 		} 	} script=end