Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Clicking the middle mouse button will show an arrow bubble in the direction of the mouse.
- -Made by Orpheon, concept by L.
- */
- object_event_add(PlayerControl, ev_step, ev_step_begin, "
- var bubble;
- if mouse_check_button(mb_middle) and !menuOpen and global.myself.object != -1
- {
- if global.myself.object.aimDirection >= 45 and global.myself.object.aimDirection <= 135
- {
- // Up arrow
- bubble = 40;
- }
- else if global.myself.object.aimDirection >= 135 and global.myself.object.aimDirection <= 225
- {
- // Left arrow
- bubble = 37;
- }
- else if global.myself.object.aimDirection >= 225 and global.myself.object.aimDirection <= 315
- {
- // Down arrow
- bubble = 39;
- }
- else
- {
- // Right arrow
- bubble = 38;
- }
- write_ubyte(global.serverSocket, CHAT_BUBBLE);
- write_ubyte(global.serverSocket, bubble);
- socket_send(global.serverSocket);
- }")
Add Comment
Please, Sign In to add comment