• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

camera system halp

Status
Not open for further replies.
Level 4
Joined
Dec 2, 2008
Messages
76
so im making this camera system that is movable by arrow keys but somewhy when i press up and right at the same time i closes warcraft this doesnt happen on any othe combination or single key

heres the map
(its in gui)
 
Level 4
Joined
Dec 2, 2008
Messages
76
Could you rather copy your triggers here, I don't like downloading opening maps. Thanks
i will do it tomorrow if nobody has helped me yet now i am bit busy

EDIT1:
heres the code

  • cam
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Camera - Lock camera target for Player 1 (Red) to Grom Hellscream 0001 <gen>, offset by (0.00, 0.00) using Default rotation
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Presses the Left Arrow key
    • Conditions
    • Actions
      • Trigger - Turn on left <gen>
      • Trigger - Turn on spin1 <gen>
  • Untitled Trigger 001 Copy 2
    • Events
      • Player - Player 1 (Red) Releases the Left Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off left <gen>
      • Trigger - Turn off spin1 <gen>
  • Untitled Trigger 001 Copy
    • Events
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Trigger - Turn on right <gen>
      • Trigger - Turn on spin2 <gen>
  • Untitled Trigger 001 Copy Copy
    • Events
      • Player - Player 1 (Red) Releases the Right Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off right <gen>
      • Trigger - Turn off spin2 <gen>
  • (off) left
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Rotation to (rotation - 20.00) over 0.30 seconds
      • Wait 0.01 seconds
      • Set rotation = (rotation - 20.00)
  • (off) right
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Rotation to (rotation + 25.00) over 0.30 seconds
      • Wait 0.01 seconds
      • Set rotation = (rotation + 20.00)
  • Untitled Trigger 002
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Angle of attack to angle over 0.00 seconds
  • up
    • Events
      • Player - Player 1 (Red) Presses the Up Arrow key
    • Conditions
    • Actions
      • Trigger - Turn on up pressed <gen>
      • Trigger - Turn on spin1 <gen>
  • up Copy
    • Events
      • Player - Player 1 (Red) Releases the Up Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off up pressed <gen>
      • Trigger - Turn off spin1 Copy <gen>
  • (off) up pressed
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Angle of attack to (angle - 25.00) over 0.30 seconds
      • Set angle = (angle - 25.00)
  • down
    • Events
      • Player - Player 1 (Red) Presses the Down Arrow key
    • Conditions
    • Actions
      • Trigger - Turn on down presses <gen>
      • Trigger - Turn on spin2 Copy <gen>
  • down Copy
    • Events
      • Player - Player 1 (Red) Releases the Down Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off down presses <gen>
      • Trigger - Turn off spin2 Copy <gen>
  • (off) down pressed
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Angle of attack to (angle + 25.00) over 0.30 seconds
      • Wait 0.01 seconds
      • Set angle = (angle + 25.00)
  • (off) spin1
    • Events
      • Game - rotation becomes Less than 1.00
    • Conditions
    • Actions
      • Set rotation = 360.00
  • (off) spin1 Copy
    • Events
      • Game - angle becomes Less than 1.00
    • Conditions
    • Actions
      • Set angle = 360.00
  • (off) spin2
    • Events
      • Game - rotation becomes Greater than 359.00
    • Conditions
    • Actions
      • Set rotation = 0.00
  • (off)spin2 Copy
    • Events
      • Game - angle becomes Greater than 359.00
    • Conditions
    • Actions
      • Set angle = 0.00
EDIT2:
bump
 
Last edited by a moderator:
Level 17
Joined
Nov 18, 2008
Messages
1,538
Probably because the computer is having a brain fart. Just have it so when he presses a key the other three triggers for key presses are turned off and when he releases they are turned back on.
 
Status
Not open for further replies.
Top