Advertisement
SmileFXOfficial

Damage

Jun 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. int rot = getRotation();
  2.  
  3. if(status.istSystemOK() == true)
  4. {
  5. if (richtung=="vorne" && rot==0 || richtung=="rechts" && rot==270 || richtung=="links" && rot==90)
  6. {
  7. if(getOneObjectAtOffset(1,0,Huegel.class)!=null)
  8. {
  9. return true;
  10. }
  11. }
  12.  
  13. if (richtung=="vorne" && rot==180 || richtung=="rechts" && rot==90 || richtung=="links" && rot==270)
  14. {
  15. if(getOneObjectAtOffset(-1,0,Huegel.class)!=null)
  16. {
  17. return true;
  18. }
  19. }
  20.  
  21. if (richtung=="vorne" && rot==90 || richtung=="rechts" && rot==0 || richtung=="links" && rot==180)
  22. {
  23. if(getOneObjectAtOffset(0,1,Huegel.class)!=null)
  24. {
  25. return true;
  26. }
  27.  
  28. }
  29.  
  30. if (richtung=="vorne" && rot==270 || richtung=="rechts" && rot==180 || richtung=="links" && rot==0)
  31. {
  32. if(getOneObjectAtOffset(0,-1,Huegel.class)!=null)
  33. {
  34. return true;
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement