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

[Solved] How to get positions of player cameras and use them

Status
Not open for further replies.
Level 6
Joined
Jan 16, 2017
Messages
110
So I want to make a system where player camera would rotate based on in which region it is pointing at.
upload_2018-11-4_12-19-42.png

Red Arrow is Warcraft 3 default camera rotation in this case.
Is this somehow possible without causing desync or crash? (and if possible leakless)

EDIT: I managed to solved it
Triggers
upload_2018-11-4_18-3-38.png

It seemed to work when i tested it in multiplayer.
But i dont recommend to use it on anything else than camera actions because of desync.
 

Attachments

  • Camera Test.w3x
    17.1 KB · Views: 61
Last edited:
Level 45
Joined
Feb 27, 2007
Messages
5,578
That example trigger leaks 200 points per second. Save Point(CamX, CamY) into a variable, use it to check against regions, and remove it at the end of the trigger.
Pretty sure those are local data
Daffa is correct. Be aware that the actual point being checked is different on player 1 and player 2's computers because the local nature of the cam data is baked into that native.
 
Level 6
Joined
Jan 16, 2017
Messages
110
That example trigger leaks 200 points per second. Save Point(CamX, CamY) into a variable, use it to check against regions, and remove it at the end of the trigger.

Daffa is correct. Be aware that the actual point being checked is different on player 1 and player 2's computers because the local nature of the cam data is baked into that native.

Is this correct?
upload_2018-11-5_16-28-22.png
 
Status
Not open for further replies.
Top