Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onTick()
- if (player:mem(0x44, FIELD_BOOL)) then
- for _,v in ipairs(NPC.get(195, player.section)) do
- if not v.isGenerator and not v.layerObj.isHidden and v:mem(0x12A, FIELD_WORD) > 0 and (player.keys.altJump == KEYS_PRESSED) then
- v:kill(8)
- end
- end
- end
- end
- function onDraw()
- if (player:mem(0x44, FIELD_BOOL) and player.standingNPC) then
- player.direction = math.sign(player.standingNPC.speedX)
- player.frame = 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement