papyrus fight bullet hit code thing
function OnHit(bullet)
local color = bullet.GetVar('color')
if color == 0 then
player.Hurt(2)
elseif color == 1 and Player.isMoving then
player.Hurt(2)
elseif color == 2 and not Player.isMoving then
player.Hurt(2)
end
end
Comments