Collisin with terrain and doodad

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,081
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:
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.
Back
Top