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

dummy unit tips and help

Status
Not open for further replies.
Level 3
Joined
Jun 10, 2008
Messages
29
I need some help with the basics of dummy units, really I'm using them for units that cannot be selected.

How to spawn them, and how to create the area in which they are spawned

How to tell them to move, and also follow a parent unit (two separate units for two separate triggers there so I don't need some way to switch between the two.)

Can they attack, if not then what is the trigger for them to animate just like they were attacking when their "parent unit" attacks

Can they use abilities? and how to get them to use it when their "parent unit" uses a certain ability on the same target. If not how to create a projectile (and modify the ark on it) when an ability is used of their parent unit, so like they're firing as well.

Finally when to tell them to die

Also is there a way to get custom attack sounds?
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Holy Cannoli said:
How to spawn them, and how to create the area in which they are spawned

JASS:
function CreateUnit takes player id, integer unitid, real x, real y, real facing returns unit

Holy Cannoli said:
How to tell them to move, and also follow a parent unit (two separate units for two separate triggers there so I don't need some way to switch between the two.)

JASS:
function SetUnitX takes unit u, real x returns nothing
function SetUnitY takes unit u, real y returns nothing

function IssueImmediateOrder takes unit u, string order returns boolean
function IssueTargetOrder takes unit u, string order, widget target returns boolean
function IssuePointOrder takes unit u, string order, real x, real y returns boolean

Holy Cannoli said:
Can they attack, if not then what is the trigger for them to animate just like they were attacking when their "parent unit" attacks

JASS:
function SetUnitAnimation takes unit u, string animation returns nothing
function SetUnitAnimationByIndex takes unit u, integer index returns nothing

I don't know why you would need this sort of thing, it sounds like you're asking too much of your dummy unit.

Holy Cannoli said:
Can they use abilities? and how to get them to use it when their "parent unit" uses a certain ability on the same target. If not how to create a projectile (and modify the ark on it) when an ability is used of their parent unit, so like they're firing as well.

Using an ability is the same as issuing an order, you just have to make sure the ability is setup properly on the dummy unit.

It sounds like you really haven't tried anything.
 
Status
Not open for further replies.
Top