HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tanks vs Trees lol

12-22-2006, 08:35 PM#1
Xlightscreen
mmk well currently im trying to make a spell so that my tanks for my project will just plow them over when they are moving. well acourse the basic idea would be to give ability on movment then get rid of ability the problem seems to be that I haven't found a ability that works. I tried all the immulations including the hero and netural one and added the target tree tag but it still dosen't wan't to kill those trees. any ideas?
12-22-2006, 08:49 PM#2
Av3n
Try Triggering it.

-Av3n
12-22-2006, 09:06 PM#3
Tiki
You cant just walk over trees, trigger it like av3n said.
12-22-2006, 09:17 PM#4
Xlightscreen
mmmm. I thought of that but woulden't cuase memory leaks and stuff with it constantly going on and off as you micro your tanks around?
12-22-2006, 09:25 PM#5
Av3n
try locating them

-Av3n
12-22-2006, 11:14 PM#6
rulerofiron99
this would be a basic trigger to use for this type of thing:

Trigger:
TanksKillTreesLol
Collapse Events
Time - Every 0.05 seconds of game time
Conditions
Collapse Actions
Set tempGroup[0] = (Units of type Siege Engine)
Collapse For each (Integer A) from 1 to (Number of units in tempGroup[0]), do (Actions)
Collapse Loop - Actions
Set tempUnit[0] = (Random unit from tempGroup[0])
Set tempPoint[0] = (Position of tempUnit[0])
Set tempPoint[1] = (tempPoint[0] offset by 50.00 towards (Facing of tempUnit[0]) degrees)
Collapse Destructible - Pick every destructible within 50.00 of tempPoint[1] and do (Actions)
Collapse Loop - Actions
Destructible - Kill (Picked destructible)
Custom script: call RemoveLocation(udg_tempPoint[0])
Custom script: call RemoveLocation(udg_tempPoint[1])
Unit Group - Remove tempUnit[0] from tempGroup[0]
Custom script: call DestroyGroup(udg_tempGroup[0])
12-23-2006, 02:32 AM#7
Xlightscreen
mmk well that gives are a start so thanks.
12-23-2006, 03:01 AM#8
rulerofiron99
Just play around with the distance and radius until you are perfectly happy with it.

Perhaps I should also make a sub-system that checks if the tank is moving... I mean, it'll look kinda bad if the tank just turns towards a tree and it dies