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

Random Teleport

Status
Not open for further replies.
Level 13
Joined
Nov 4, 2006
Messages
1,239
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