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

Units sleeping.

Status
Not open for further replies.
Level 2
Joined
Mar 17, 2020
Messages
8
Can anyone help with these two points-


1. How to make a unit sleep at night, (I can make the unit paused when night time comes) but than there is not zzz. effect, how to add that.

2. How to make units not attack automatically, and make them only when the player gives a command.


Thank You.
 
Level 21
Joined
May 29, 2013
Messages
1,566
1. How to make a unit sleep at night, (I can make the unit paused when night time comes) but than there is not zzz. effect, how to add that.
The "Stats - Sleeps" field determines whether the unit sleeps at night-time, but this only affects units owned by the Neutral Hostile player.
2. How to make units not attack automatically, and make them only when the player gives a command.
Units with the Worker classification (Stats - Unit Classification) don't auto-attack enemies, but you have to add it with triggers if you don't want the Idle Worker Icon (at the bottom left corner of the screen) to be shown.
  • Unit Group - Pick every unit in (Units of type Rifleman) and do (Unit - Add classification of A peon-type unit to (Picked unit))
 
Status
Not open for further replies.
Top