Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function onTick()
  2. if (player:mem(0x44, FIELD_BOOL)) then
  3. for _,v in ipairs(NPC.get(195, player.section)) do
  4. if not v.isGenerator and not v.layerObj.isHidden and v:mem(0x12A, FIELD_WORD) > 0 and (player.keys.altJump == KEYS_PRESSED) then
  5. v:kill(8)
  6. end
  7. end
  8. end
  9. end
  10.  
  11. function onDraw()
  12. if (player:mem(0x44, FIELD_BOOL) and player.standingNPC) then
  13. player.direction = math.sign(player.standingNPC.speedX)
  14. player.frame = 1
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement