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

Help Arrays....

Status
Not open for further replies.
Well I think I found a way to stop the error and keep it worling, just make an if/then/else that makes sure its a real player first.

  • Forward - Loop
    • Events
      • Timer - Every 0.03 seconds of Game Time
    • Local Variables
      • TempPoint = No Point <Point>
      • TempInt = 0 <Integer>
    • Conditions
    • Actions
      • Player Group - Pick each player in (All players) and do (Actions)
        • Actions
          • Variable - Set TempInt = (Picked player)
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Status of player TempInt) == Playing
            • Then
              • Variable - Set TempPoint = ((Position of HeroUnit[TempInt]) offset by 1.0 towards Rotation[TempInt] degrees)
              • General - If (Conditions) then do (Actions) else do (Actions)
                • If
                  • Forward[TempInt] == true
                • Then
                  • Unit - Order HeroUnit[TempInt] to ( Move targeting TempPoint) (Replace Existing Orders)
                  • Camera - Pan the camera for player TempInt to (TempPoint offset by (0.0, 0.0)) over 0.1 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                • Else
            • Else
 
Status
Not open for further replies.
Top