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

Bounce vs Regions

Status
Not open for further replies.
Level 6
Joined
Sep 15, 2006
Messages
136
Hi, I want to make some units bounce when them touch a region,

I'll make a square of 4 regions, and I want some units in it bouncing forever.

But no random moves, I want that if one comes directly rigth the bounce will be directly left, if one comes in a diagonal from left to right and from down it will bounce in other diagonal from the point of colision to a contrary side diagonal.

(My english isn't very good so the text before can have no sense :grin:)

But I have no idea of how to do:


A unit enters "region X"

Owner of entering unit equal to player 12 (brown)

Order entering unit to move unit to ???*where*???


Or something like that, huh?
 
Status
Not open for further replies.
Top