Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- //Snaps the camera to the nearest cardinal direction (Near perfect N,S,E,W)
- //Special thanks to ShadowSniper and Peter for figuring this out :)
- IF((%YAW% < 45) || (%YAW% >= 315));
- LOOK(180,0);
- ELSEIF((%YAW% < 314) && (%YAW% >= 225));
- LOOK(90,0);
- ELSEIF((%YAW% < 224) && (%YAW% >= 135));
- LOOK(0,0);
- ELSEIF((%YAW% < 134) && (%YAW% >= 45));
- LOOK(270,0);
- ENDIF;
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement