ThomasSpeedrunner icon

papyrus fight bullet hit code thing

ThomasSpeedrunner | PRO | 12/29/15 05:17:01 PM UTC | 0 ⭐ | 512 👁️ | Never ⏰ | []
Lua |

240 B

|

None

|

0 👍

/

0 👎

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