34 posts joined 2006-05-12
#1 2006-10-07
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 2006-10-08
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.
34 posts joined 2006-05-12
#3 2006-10-14
hi cant
units blow up the ground and i dont want then to die if the hole isnt deep enuf
1,418 posts Here joined 2005-12-14
#4 2006-10-14
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.
34 posts joined 2006-05-12
#5 2006-10-15
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
1,418 posts Here joined 2005-12-14
#6 2006-10-15
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.
34 posts joined 2006-05-12
#7 2006-10-25
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
34 posts joined 2006-05-12
#8 2006-10-25
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
1,418 posts Here joined 2005-12-14
#9 2006-10-26
try .25, to reduce lag.