ok iv got this spell that creates a shadow and attacks the owner of the shaddow the only this is i dunno how to make it so that the shadow is uncontrollable so i tryed adding locust turns out you cant add locust by triggers
how would i go about making it so you cant controll the shadows
how would i go about making it so you cant controll the shadows
Trigger:
- Pure Shadows
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Pure Shadows
- Actions
- Set temp_point = (Position of (Casting unit))
- Set Temp_Group = (Units within 400.00 of temp_point matching ((((Matching unit) is A structure) Equal to False) and ((((Triggering unit) is dead) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
- Custom script: call RemoveLocation (udg_temp_point)
- Set PS_unit_lasting = (5.00 + (5.00 x (Real((Level of Pure Shadows for (Triggering unit))))))
- Unit Group - Pick every unit in Temp_Group and do (Actions)
- Loop - Actions
- Set PS_unit = (Unit-type of (Picked unit))
- Set temp_point = (Position of (Picked unit))
- Unit - Create 1 PS_unit for (Owner of (Triggering unit)) at temp_point facing (Facing of (Picked unit)) degrees
- Unit - Add a PS_unit_lasting second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Attack (Picked unit)
- Unit - Turn collision for (Last created unit) Off
- Animation - Change (Last created unit)'s vertex coloring to (0.00%, 0.00%, 0.00%) with 60.00% transparency
- Custom script: call RemoveLocation (udg_temp_point)
- Loop - Actions
- Custom script: call DestroyGroup ( udg_Temp_Group)
- Events