I've started making a FPS just to get used to the editor, and I'm having troubles with a lot of things >.>
First off, I can't find a way to create a crosshair in the middle of the player's view (aka where the cursor is).
Second, having the unit turn in the direction of the cursor is something I'm having troubles with
And finally, I can't even get the camera into First Person position >.>
...Basically, it's closer to a third person shooter right now :P Can somebody help me?
A first person shooter might not be the easiest way to get used to the editor.
You can make a crosshair for all players by drawing a screen image, or you can make individual crosshairs by creating a dialog, hiding its background and adding an image to it as a dialog item. You can change the facing of the unit by calling UnitSetFacing on the unit every 0.0 seconds and updating it to the Yaw of the player's camera which you can get with CameraGetYaw. To get the camera into first person, you want to set the camera object bounds to a small region you have attached to the unit, and set the camera's values however you desire them.
Here's an example from my game. It's over-the-shoulder third-person but you can push it up to first-person by adjusting the numerical values of HeightOffset and Distance:
All of the functions I've mentioned are also available in the trigger editor, as are most of the functions at the link I supplied. Their location in the editor is usually pretty self-explanatory.
I've started making a FPS just to get used to the editor, and I'm having troubles with a lot of things >.>
First off, I can't find a way to create a crosshair in the middle of the player's view (aka where the cursor is). Second, having the unit turn in the direction of the cursor is something I'm having troubles with And finally, I can't even get the camera into First Person position >.>
...Basically, it's closer to a third person shooter right now :P Can somebody help me?
@Zeke50100: Go
A first person shooter might not be the easiest way to get used to the editor.
You can make a crosshair for all players by drawing a screen image, or you can make individual crosshairs by creating a dialog, hiding its background and adding an image to it as a dialog item. You can change the facing of the unit by calling UnitSetFacing on the unit every 0.0 seconds and updating it to the Yaw of the player's camera which you can get with CameraGetYaw. To get the camera into first person, you want to set the camera object bounds to a small region you have attached to the unit, and set the camera's values however you desire them.
Here's an example from my game. It's over-the-shoulder third-person but you can push it up to first-person by adjusting the numerical values of HeightOffset and Distance:
There's a full list of functions here: http://paste.sc2mapster.com/1979/
All of the functions I've mentioned are also available in the trigger editor, as are most of the functions at the link I supplied. Their location in the editor is usually pretty self-explanatory.