Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CONFIG
- local PLAYER_NAME = "ecco7777"
- local POTENCY = 5
- -- wrap peripherals
- local s = peripheral.wrap("back")
- while true do
- local meta = s.getMetaByName(PLAYER_NAME)
- if meta and meta.yaw and meta.pitch then
- -- fire laser in the look direction
- s.fire(meta.yaw, meta.pitch, POTENCY)
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment