Passing selected unit to an event?

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
GrumpyMel
Posts: 864
Joined: Fri Dec 28, 2007 8:37 pm

Passing selected unit to an event?

Post by GrumpyMel »

Hey guys. Trying to use some of the new functionality in the ATG editor. One thing that seems to be escaping me is how to pass a unit that you select with an action card to an event.

I know ATG lets you select a unit with an action card and the settings on the card to allow that seem pretty intuitive but I can't seem to find anything on where it stores the unit number you selected so that you can pass it to the event the card executes. Can anyone help me out here?
Lunaticus_matrixforum
Posts: 834
Joined: Wed Dec 31, 2008 3:50 pm
Location: Germany

RE: Passing selected unit to an event?

Post by Lunaticus_matrixforum »

If you select a hex the values are handed to the event on tempvar2(x), tempvar(y).
If you select a unit then the value of the unit is handed to the event in tempvar5.
Post Reply

Return to “Mods and Scenarios”