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

Random Revive in regions

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
Hi guys i want to know how to make a Random revive in regions i have 9 regions and i want to change in every 3 seconds (where they revive)
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
ReviveSpotPoint ArrayCurrentReviveSpotPoint

[TD]Variable Name[/TD][TD]Variable Type[/TD]

[tr]
[tr]

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set ReviveSpot[1] = (Center of Revive Spot 1 <gen>)
      • Set ReviveSpot[2] = (Center of Revive Spot 2 <gen>)
      • Set ReviveSpot[3] = (Center of Revive Spot 3 <gen>)
      • Set ReviveSpot[4] = (Center of Revive Spot 4 <gen>)
      • Set ReviveSpot[5] = (Center of Revive Spot 5 <gen>)
      • Set ReviveSpot[6] = (Center of Revive Spot 6 <gen>)
      • Set ReviveSpot[7] = (Center of Revive Spot 7 <gen>)
      • Set ReviveSpot[8] = (Center of Revive Spot 8 <gen>)
      • Set ReviveSpot[9] = (Center of Revive Spot 9 <gen>)
  • Revive
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Set CurrentReviveSpot = ReviveSpot[(Random integer number between 1 and 9)]
 
Status
Not open for further replies.
Top