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

Check a player's camera position

Status
Not open for further replies.
Level 7
Joined
Apr 17, 2017
Messages
316
After checking GUI equivalents, here's what you should do:
  • init
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start timer as a Repeating timer that will expire in 0.30 seconds
  • camtest
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Set location = (Target of current camera view)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Region 000 <gen> contains location) Equal to True
        • Then - Actions
          • Camera - Set Player 1 (Red)'s camera Distance to target to 200.00 over 0.00 seconds
        • Else - Actions
      • Custom script: call RemoveLocation(udg_location)
 
Status
Not open for further replies.
Top