• 🏆 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!

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