Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn PNxTargetControllerScript
- ; O - lock on
- ; I - forward
- ; J - left
- ; k - back
- ; l right
- ; U jump
- ref curTarget
- short lockTrap
- short animTrap
- Begin GameMode
- if isKeyPressed 25 == 1
- if lockTrap == 0
- set lockTrap to 1
- set curTarget to getCrosshairRef
- if curTarget != 0
- printToConsole "Target: %n" curTarget
- endif
- endif
- else
- set lockTrap to 0
- endif
- if curTarget == 0
- return
- endif
- if isKeyPressed 23 == 1
- curTarget.playGroup FastForward 0
- elseif isKeyPressed 36 == 1
- curTarget.playGroup FastLeft 0
- elseif isKeyPressed 37 == 1
- curTarget.playGroup FastBackward 0
- elseif isKeyPressed 38 == 1
- curTarget.playGroup FastRight 0
- elseif isKeyPressed 49 == 1
- curTarget.playGroup JumpStart 0
- elseif isKeyPressed 24 == 1
- curTarget.playGroup TurnRight 0
- elseif isKeyPressed 22 == 1
- curTarget.playGroup TurnLeft 0
- endif
- End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement