• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

First Person Shooter

Status
Not open for further replies.
Level 6
Joined
Jul 29, 2007
Messages
160
Hello, I'm not sure where to put this so if its in the wrong spot I'm sorry.

I was wondering how to make a FPS in WE. I no how to make it first person and make units hold guns. What I am asking is how do I make it so the man doesn't lock on and his bullets just shoot straight so if the target moves the bullets miss. Also, how do I do FPS movements such as WASD for movement, R for reload, SPACE to jump, etc etc?

I'm not sure if this is possible but if anyone knows how to do this can you please tell me.
 
then COPY AND PASTE THEM :d and after that you can just change the unit the triggor is used for.
 
Try using this ...
  • Up Movement
  • Events
  • Player - Player X pushes the UP arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean UP true
  • Animation - Play X
  • Up Moving
  • Events
  • Time - Every 0.01 seconds
  • Conditions
  • Boolean - Boolean X is true
  • Events
  • Unit - Move Unit X instantly to point with offset position of Unit X + (whatever up a bit is)
  • Unit - Make Unit X face 90.00 degrees
  • Stop
  • Events
  • Player - Player X releases the Up Arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean X False
  • Animation - Play Unit X Stand Animation
For turning:

  • Left Turn
  • Events
  • Player - Player X pushes down the Left arrow key
  • Conditions
  • Events
  • Variable -Set Boolean Y True
  • Left Turning
  • Events
  • Time - Every 0.10 seconds
  • Conditions
  • Boolean - Boolean Y equals to True
  • Actions
  • Unit - Make Unit X face Unit X's facing - 1.00
  • Left Release
  • Events
  • Player - Player X releases the Left arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean Y False
Note that this is for a single player game; it can be adjusted for Down and Right, and I'm not sure if it works. I never opened up WE.
 
Try using this ...
  • Up Movement
  • Events
  • Player - Player X pushes the UP arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean UP true
  • Animation - Play X
  • Up Moving
  • Events
  • Time - Every 0.01 seconds
  • Conditions
  • Boolean - Boolean X is true
  • Events
  • Unit - Move Unit X instantly to point with offset position of Unit X + (whatever up a bit is)
  • Unit - Make Unit X face 90.00 degrees
  • Stop
  • Events
  • Player - Player X releases the Up Arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean X False
  • Animation - Play Unit X Stand Animation
For turning:

  • Left Turn
  • Events
  • Player - Player X pushes down the Left arrow key
  • Conditions
  • Events
  • Variable -Set Boolean Y True
  • Left Turning
  • Events
  • Time - Every 0.10 seconds
  • Conditions
  • Boolean - Boolean Y equals to True
  • Actions
  • Unit - Make Unit X face Unit X's facing - 1.00
  • Left Release
  • Events
  • Player - Player X releases the Left arrow key
  • Conditions
  • Actions
  • Variable - Set Boolean Y False
Note that this is for a single player game; it can be adjusted for Down and Right, and I'm not sure if it works. I never opened up WE.

that will be too hard to make workin and a specialy for a newb so here
View attachment ShootingGameTest.w3x
View attachment ArrowKeys.w3x
View attachment Копие от Movement System.w3x
I hope that helps
:infl_thumbs_up:
 
Belgarath I wasn't talking about my map i was talking about the map someone sent me.


I figured out how to do the camera movement, right now it only has 4 angels but I can ad as many as i need so the camera works smoothly. Right now it isn't very realistic but I was in a rush.
 

Attachments

  • camera.jpg
    camera.jpg
    60.8 KB · Views: 154
Last edited:
Status
Not open for further replies.
Back
Top