Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. scn PNxTargetControllerScript
  2.  
  3. ; O - lock on
  4. ; I - forward
  5. ; J - left
  6. ; k - back
  7. ; l right
  8. ; U jump
  9.  
  10.  
  11. ref curTarget
  12. short lockTrap
  13. short animTrap
  14.  
  15. Begin GameMode
  16.  
  17.  
  18. if isKeyPressed 25 == 1
  19. if lockTrap == 0
  20. set lockTrap to 1
  21. set curTarget to getCrosshairRef
  22. if curTarget != 0
  23. printToConsole "Target: %n" curTarget
  24. endif
  25. endif
  26. else
  27. set lockTrap to 0
  28. endif
  29.  
  30. if curTarget == 0
  31. return
  32. endif
  33.  
  34. if isKeyPressed 23 == 1
  35. curTarget.playGroup FastForward 0
  36. elseif isKeyPressed 36 == 1
  37. curTarget.playGroup FastLeft 0
  38. elseif isKeyPressed 37 == 1
  39. curTarget.playGroup FastBackward 0
  40. elseif isKeyPressed 38 == 1
  41. curTarget.playGroup FastRight 0
  42. elseif isKeyPressed 49 == 1
  43. curTarget.playGroup JumpStart 0
  44. elseif isKeyPressed 24 == 1
  45. curTarget.playGroup TurnRight 0
  46. elseif isKeyPressed 22 == 1
  47. curTarget.playGroup TurnLeft 0
  48. endif
  49.  
  50. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement