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

Random Teleport

Status
Not open for further replies.
Level 14
Joined
Nov 4, 2006
Messages
1,241
Hi,
Is it possible to set a variable target area for:

Unit enters region

move unit (instantly) to REGION <---- this region

i got 5 different target areas and the units should not always enter the same one (sometimes in this region then in another one)
is it possible to do that :confused:

Thx for your help :coolgrunt:
 
Possible

Yes, you just need to set variable when needed. For example:

Units begins casting abilitie

abilitie being cast equal to generic dummy

Set udg_GENERICINTEGER = random number from 1 to 5

If udg_GENERICINTEGER = 1, then set udg_REGION=Region 001

If udg_GENERICINTEGER = 2, then set udg_REGION=Region 002

Unit - Move unit instantly to udg_REGION

this way you will be able to change destination for "Unit enters region" Event

If this is not what you asked, please tell me.:grin:

heres example map!
 
Last edited:
Status
Not open for further replies.
Top