HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Differentiating Event Response 'Object'

12-18-2008, 04:58 PM#1
ShadowWolf
Trigger:
Collapse Events
Unit - A unit Is issued an order targeting an object
Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
???
Collapse Then - Actions
Set temp_Location = (Position of (Target unit of issued order))
Collapse Else - Actions
Set temp_Location = (Position of (Target item of issued order))
I need a condition to check if said 'object' is a unit, or an item. Actions don't refer to objects, they refer to items or units, but I need to do seperate actions dependent on if the targeted object is an item, or a unit.
12-18-2008, 07:30 PM#2
Anitarf
Try unit comparison: (Target unit of issued order) not equal to (no unit)
12-18-2008, 10:13 PM#3
ShadowWolf
Haha, never would have thought of that. Thanks. You're awesome :D