Warcraft III resources & community, 2003–2006 · archived

terrain lvl

9 posts
#1

terrain lvl

hi
im useing
Environment - creat crater
and i whant a unit to die if it goest down too far but terrain lvl is still 0 at bottom and i cant fined a way to do it without useing cliff.
#2
LOL....Very simple

Create a region with in the area or point where the unit enters and die's

create a trigger.

Event: unit enters "region"
Condition: none
Action"
Unit - kill "entering Unit"

very simple....

if dis doesnt answer ur question... well e-mail me and i will send a similiar map to you on msn or somfin. well latahs.
#3

hi

cant

units blow up the ground and i dont want then to die if the hole isnt deep enuf
#4
there was another thread talking about this...

Custom Script: call GetLocationZ(location)

should work, with location being ur location, replacing with udg_(yourvariable)

anyways, basically, this returns the z of the location from cliff height 0, thus determining the depth of terrain if placed on it.
#5

hi

coud u help me make the trigger ??

im trying to make it so that if the hole isnt steep the enemy can still get out

if its a steep slope he can only move on his lvl

anf if its too deep he dies
btw my pet thing is > yours :D
#6
lolz

anyways, first, just make a location, and set it to the point which is the HIGHEST point where you can die in.

then, make a Point variable called loc, and set it to that location.

put a trigger at 0.01s that has THIS as an action

Custom Script: call BJDebugMsg( R2S( GetLocationZ( udg_loc ) ) )

then, tell me what that says.
#7

hi

can u tell me how to set it up lol

ok i made a terrian deformation i want them to die at and made a region in there.

and did

-0.01
-
-Set loca to (center of(region-1))

-periodic 0.01
-
-BJDebugMsg( R2S( GetLocationZ( udg_loc ) ) )
wat do i do with it
#8

nm

nm

i found a ok way to do it lol


every 0.01

if- Zhight Real(posion of (unit) = Zhight of real(region)
then- explode unit
els nothing
#9
try .25, to reduce lag.