• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

<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