• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Is this working for all players?

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hello. I have a script and i want to ask you if it works properly because i don't have anyone to test with. So this is the script :
  • asd2
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Set CameraLoopNumber = (Player number of (Picked player))
          • Custom script: set udg_CameraLocation[udg_CameraLoopNumber] = GetCameraTargetPositionLoc()
      • For each (Integer IntegerLoop) from 1 to 10, do (Actions)
        • Loop - Actions
          • Cinematic - Ping minimap for (All players) at CameraLocation[IntegerLoop] for 1.00 seconds
I basically want to store the location of all players' cameras. I am pinging the map to see if it works. It pings right for me but the other 9 pings are on the center of the map (because there are no other players except me).
Is it right?

P.S. I know that i am leaking 10 locations.
 
Status
Not open for further replies.
Top