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

<Help>Trigger problems--Triggering unit

Status
Not open for further replies.
Level 2
Joined
Feb 6, 2006
Messages
18
Event
A unit begin casting an ability
Condition
Ability equal to xxx
Actions
Apply Camera[1] for Triggering player over 0.00sec
but i can replace "Triggering player" with "Owner of triggering unit"
They both work
i think when you share control with other players,they use ur unit to cast that spell,and my camera changes instead of him. But any other important difference? would this cause memory leak?
another example,
Event
A unit finishes construction
Condition
N/A
Actions
If unit type of constructed unit equal to xxx
then do ......
i can replace constructed unit with triggering unit
how's this case? :? :?
 
Level 5
Joined
May 9, 2006
Messages
162
Imagine: Two events happen at once: construction and something else. Then you will not know which unit returns Triggering Unit. So, this is the difference.

I'm not sure about the leaks. Probably it mustn't.
 
Status
Not open for further replies.
Top