:header
name Rat
health 100
fightExperience 100
spawnRadius 90
damagePerHit 2
alignment hostile
outfit node headSkin
startAI
stop

:onTargetFarAway
stop

:onHurt
if int %DMG% <= 20
	stopAttack
	startAI
else
	lookat %PLAYER_OBJ%
	stopAI
	startAttack
endif
stop

:onDeath
wait %RANDOM:100:1000%
respawn
stop
