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

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