HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage to destructibles in region?

08-11-2007, 02:28 AM#1
PenguinEmperor
I needs some helps. I'm trying to get the panda in my Panda FPS to be able to attack destructibles. However, since damage is dealth through triggers, this is becoming very difficult.

Trigger:
PandarenAttack
Collapse Events
Unit - Pandaren 0002 <gen> Is issued an order with no target
Collapse Conditions
(Issued order) Equal to (Order(stop))
Collapse Actions
Trigger - Turn off (This trigger)
Animation - Play Pandaren's attack animation
Unit Group - Pick every unit in (Units within 90.00 of ((Position of Pandaren 0001 <gen>) offset by 100.00 towards (Real(DirectionDegrees)) degrees)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00))
Wait 0.97 seconds
Animation - Reset Pandaren's animation
Trigger - Turn on (This trigger)

So, as you can see, I got the unit damage down good, but can't seem to figure out a Destructible equvalent.
08-11-2007, 02:47 AM#2
Tide-Arc Ephemera
Trigger:
Destructible - Pick every destructible within 90.00 of (Some Random Point) and do (Actions)
Loop - Actions

How about create a dummy unit and then make it attack the destructible? That way you can even get sound effects without triggers 'n' stuff.
08-11-2007, 02:56 AM#3
PenguinEmperor
Your trigger dosen't work, because it needs to not only be withing 90, but also offset by his current facing direction.
08-11-2007, 03:09 AM#4
Tide-Arc Ephemera
It was an example. Make a dummy unit, order it to attack the destructible. That way you can even integrate power ups with destructible attacks.
08-11-2007, 04:01 AM#5
PenguinEmperor
Uhh... I don't really understand the way that would work...

Just having a dummy dosen't seem controlled enough. As of now, all attacks are disabled, so ordering the Control Box unit to stop makes the Panderen on the feild Attack through Triggers.
08-11-2007, 04:55 AM#6
Tide-Arc Ephemera
Use the pick all destructible thing...

If you don't need to track who killed the destructible, just use the "Destructible - Set life of (Picked destructible) to ..."

Then use something like ((Life of picked Destructible) - (100.00)) or what ever value you want.
08-11-2007, 05:10 AM#7
PenguinEmperor
The problem is I cant get it to pick all destructibles exclusivley within 90 of Pandaren and offset by 100 twoards RealDirectionDegrees.
08-11-2007, 05:17 AM#8
Tide-Arc Ephemera
Been meaning to say your trigger leaks... hope you knew that...

Why don't you use a variable to store the point with the polar offset, then create a doodad group based on all doodads within range of point?
08-12-2007, 02:26 AM#9
PenguinEmperor
As far as I'm concerned my trigger here has never failed me before.

I'll see if I can do that. Thanks for dealing with my semi-nub-like questions.

But how does one create a doodad group?