• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Collisin with terrain and doodad

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,082
So how to detect collision ?
I can replace the doodads with units or destructibles but I have no idea how to detect collision with terrain.
Edit// Almost forgot, with GUI if possible :ogre_hurrhurr: and I ment cliffs with terrain.
 
Last edited:
Level 12
Joined
Mar 24, 2011
Messages
1,082
A unit bumps into cliff = unit gets damage
A unit bumps into doodad = unit gets damage

Thought of a way about cliffs. Will test it now and tell if it works.

Edit//SOLVED Found a way about cliffs

  • Set TempPoint = (Position of Unit)
  • For each MyInteger from 1 to 12, do (Actions)
    • Loop - Actions
      • Set TempPoint2 = (TempPoint offset by 180.00 towards (30 x (Real(MyInteger))) degrees)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain cliff level at TempPoint2) Not equal to (Terrain cliff level at TempPoint)
        • Then - Actions
 
Last edited:
Status
Not open for further replies.
Top