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

Add unit to unit group upon unloading from transport

Status
Not open for further replies.
Level 10
Joined
Jun 7, 2008
Messages
420
Request: A script, in GUI or JASS (preferably GUI) that does the following:

When unit exits a transport, on the condition that the unit is a hero,
Custom script: call SetCameraUnit(udg_u, Player(0))
Custom script: call SetMovementUnit(udg_u,Player(0),7)

For players 1 to 8. Note that in the custom scripts, player 1 is 0, player 2 is 1 and so on. Also, in the second line, the '7' refers to animation number.
The only problem is I need an event to detect unit leaving transport.

Comment: These triggers are part of the witcher's camera system, which I have no idea how it works.

Help appreciated.
 
Status
Not open for further replies.
Top