HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Spawn in cliffs

07-06-2008, 04:50 AM#1
nome
My units Spawn and REspawn up in a cliff, sometimes

I tried already placing Pathing blockers and Boundary, but it's not working...
If i do this:
Trigger:
Respawn
Collapse Events
Unit - A unit enters dmara42 <gen>
Conditions
Collapse Actions
Collapse For each (Integer ContadorRegionesMINIVERIL) from 1 to 44, do (Actions)
Collapse Loop - Actions
Set ContadorRegionesMINIVERIL = (ContadorRegionesMINIVERIL + 1)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Entering unit)) Equal to Neutral Hostile
Collapse Then - Actions
If ((REgiones[ContadorRegionesMINIVERIL] contains (Entering unit)) Equal to True) then do (Unit - Move (Entering unit) instantly to (Random point in dmara42 <gen>)) else do (Do nothing)
Collapse Else - Actions
Do nothing

the trigger doesn't work..
the sentence of THEN-ACTIONS is not working..
how can i check if my unit is in a cliff (i made a region for each piece of cliffs because i found no other choice

is there another way to make a trigger to check if my unit is in a cliff and move it ?

thanks!!
07-06-2008, 09:03 PM#2
Anopob
First of all you don't need the Do Nothing, that just wastes space. Second of all, your variable names are quite confusing which makes me not really understand what you're doing, but have you tried the condition of "XXX location (which us location of unit) has WALKABILITY == ON"?
07-07-2008, 01:15 AM#3
nome
I'm Sorry.
I'm from Argentina,
the variables are in spanish :$
Also, never mind, i have already found a way

thanks!