Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,288
Hello.
I was playing around with creating a taunt system yesterday and I was fairly successful.
The system picks all targets within X of a unit of choice and force them to attack it. However, the issue came when I wanted to prevent a user to issue the units from moving away or canceling the attack.
Are there any workarounds?
edit: Changing unit owner is not an option, no need to mention it.
I was playing around with creating a taunt system yesterday and I was fairly successful.
The system picks all targets within X of a unit of choice and force them to attack it. However, the issue came when I wanted to prevent a user to issue the units from moving away or canceling the attack.
-
Untitled Trigger 002
-

Events
-


Unit - A unit Is issued an order targeting an object
-


Unit - A unit Is issued an order targeting a point
-


Unit - A unit Is issued an order with no target
-
-

Conditions
-


void Equal to False
-
-

Actions
-


Custom script: local unit udg_u = LoadUnitHandle(hash, GetHandleId(GetTriggerUnit()), 2)
-


Custom script: if udg_u != null then
-


Set void = True
-


Unit - Order (Triggering unit) to Attack u
-


Set void = False
-


Custom script: endif
-
-
Are there any workarounds?
edit: Changing unit owner is not an option, no need to mention it.
Last edited:










