• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Unit Owned by Picked Player check

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
Well title says it i think but anyways.

i was woundering how to do this

evey 5 seconds create 1 footmen for picked player at picked player start point
but only if the picked player owns a barracks vand if barracks gets destroy it doint create unit or if update to another building it creates a differant unit no footmen

like of footmen map
 
  • Timer
  • Events
    • Time - Every 5.00 seconds of game-time
  • Conditions
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Number of living Barracks units owned by (Picked player)) Not Equal to 0 //This is Integer Comparison
          • Then - Actions
            • Set Point1 = ((Picked player)'s Start Location)
            • Unit - Create 1 Footman for (Picked player) at Point1 facing default building degrees
            • Custom script: call RemoveLocation (udg_Point1)
 
ok i got stuck at if (all conditions are true) then do (Actions) else do (Actions) cant find it

EDIT: NVM i found it

Thanx it works but if this scripts on it has errors

Custom script: call RemoveLocation (udg_Point1)
i removed it and it still works
 
Last edited:
Status
Not open for further replies.
Back
Top