I want to silence a unit if it enters a particular region. I want to disable its spells and want to make it unable to attack ? How do i do that ?
Create a dummy unit then make it casts silence whenever the unit enters the region. Of course make the silence disables attacks too.
EDIT: That above.
Silencing a unit doesn't make it unable to attack. It only becomes unable to cast spells. It can still attack others !
I dont know yet for making it unable to attack but for the Silence.. here:
For example our dummy unit is a Footman but with no model so it will not be noticeable when it casts a Silence. When a unit enters the Region you want, Create the Footman Dummy and set a variable for him as the last created unit. Add Silence Ability to him but make sure it has no cooldown and also mana cost. Now pick every units in the Region you want and Order the Footman Dummy to Silence the position of Picked Unit.....
- Untitled Trigger 001
- Events
- Unit - A unit enters Region 000 <gen>
- Conditions
- Actions
- Unit - Create 1 Footman for Player 1 (Red) at (Position of (Entering unit)) facing Default building facing degrees
- Set Unit = (Last created unit)
- Unit - Add Silence to Unit
- Unit Group - Pick every unit in (Units in Region 000 <gen>) and do (Actions)
- Loop - Actions
- Unit - Order Unit to Neutral Dark Ranger - Silence (Position of (Picked unit))
Also make sure that the Silence's AOE covers all of the region so all units in that Region will be affected!
Since the created unit- Footman is for Player 1, i don't suppose it would silence a player 1 unit in that region ? So if i want to silence a player 1 unit, i will have to create the dummy unit for another player? Right ?
Silencing a unit doesn't make it unable to attack. It only becomes unable to cast spells. It can still attack others !
Uh there's a button in OE to make it disable attacks too...
Ok, thanks everyone !
REP+
actually u can set it in object editor for that silence skills, it can make ranged , meele, skills disabled....Silencing a unit doesn't make it unable to attack. It only becomes unable to cast spells. It can still attack others !