• 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.

[General] FPS camera

Status
Not open for further replies.
It's technically possible but it will be fairly complicated. First off, the new mouse natives are relative to the terrain, not the screen. This means they only work when the mouse is over terrain. If your mouse is on the skybox in the horizon then it won't work. Furthermore the mouse natives are synchronous which means they will be delayed in multiplayer, which is not good for a camera system. In China they have a couple async natives for mouse position relative to the screen, but we do not.

However, there is still a way, although it's a bit convoluted. The new native BlzGetMouseFocusUnit is async. This means if you lock the camera and display some transparent dummy units on the screen you can get the mouse position in an async manner. It's not easy to do, but it can be done. Personally, I would wait for some proper natives.
 
Status
Not open for further replies.
Top