TheWarcraft
New Member
- Reaction score
- 4
Is there a trigger(or JASS command) that can be used to create an illusion of a unit?
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
Set p = (Position of (Triggering unit))
Unit - Create 1 dummy illusion for (Owner of (Triggering unit)) at p facing Default building facing degrees
Hero - Create Wand of Illusion and give it to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Hero - Order (Last created unit) to use (Last created item) on (Triggering unit)
Custom script: call RemoveLocation(udg_p)
Code:Untitled Trigger 001 Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Animate Dead Actions Set p = (Position of (Triggering unit)) Unit - Create 1 dummy illusion for (Owner of (Triggering unit)) at p facing Default building facing degrees Hero - Create Wand of Illusion and give it to (Last created unit) Unit - Add a 1.00 second Generic expiration timer to (Last created unit) Hero - Order (Last created unit) to use (Last created item) on (Triggering unit) Custom script: call RemoveLocation(udg_p)
call IssueTargetOrderById(udg_Dummy_Variable, 852274, udg_Target_Variable)
Yeah, that's what i meant in my post above. I think its "cleaner" code. then adding items and ordering a dummy to use items. also, it doesn't only save a line of text in script, it actually goes about 5 times as fast, because adding item/using item from slot requires a bunch of BJ's and non natives to get the job done.Hmm use the ability wand of illusion and use the custom script to order your dummy... That is if u don't want to use an item
Code:call IssueTargetOrderById(udg_Dummy_Variable, 852274, udg_Target_Variable)