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

terrain lvl

Status
Not open for further replies.
Level 3
Joined
May 12, 2006
Messages
35
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.
 
Level 1
Joined
Oct 4, 2006
Messages
5
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.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
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.
 
Level 3
Joined
May 12, 2006
Messages
35
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
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
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.
 
Level 3
Joined
May 12, 2006
Messages
35
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
 
Level 3
Joined
May 12, 2006
Messages
35
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
 
Status
Not open for further replies.
Top