• 🏆 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!

[General] Selection of unloading

Status
Not open for further replies.
Level 1
Joined
Jan 15, 2022
Messages
2
Hi people, I'm trying to autoselect the ship that the unit loads into, and to autoselect the unit that unloads. So far I have this, and works for the first part:
Event: unit is loaded into a transport
Actions: add (transporting unit) to selection for (triggering player)

My problem is autoselect the unit that is unloaded. I tried putting If/then/else like "if ((ability being cast) equals to Unload (sea transport) then do (selection - select (loading unit) for (triggering player)) else (do nothing) --- but that won't work.

Can someone pls help? (i'm a noob in triggering)
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
I'm trying to autoselect the ship that the unit loads into
the game does this automatically
and to autoselect the unit that unloads
this is tricky. AFAIK there is no simple way to detect this. Bribe created a library that adds an easy way to do this though, check it out:

 
Level 1
Joined
Jan 15, 2022
Messages
2
Great, thanks
the game does this automatically

this is tricky. AFAIK there is no simple way to detect this. Bribe created a library that adds an easy way to do this though, check it out:

thank you!
 
Status
Not open for further replies.
Top