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

Destructable

Status
Not open for further replies.
Level 8
Joined
Sep 9, 2007
Messages
114
For an ability i made its called Tremors Its supposed to create destructable rubble in the middle of a canyon like thing. This is to stall enemy reinforcement and force them to break through the rubble.

Problem is... when the ability is cast twice and the enemy didn't clear all of the destructable out of the path... they just build up. and if used multiple times across the game it just gets laggy or impassible...

Is there anyway i can remove all destructables in a region and then move them back... as well as lining the destructables up in a row instead of using the create rubble in random point in region
 
Level 11
Joined
Dec 31, 2007
Messages
780
  • Destructible - Pick every destructible in (your region) and do (Destructible - Remove (Picked destructible))
do this before you cast your ability...

it gets laggy because you keep on creating destructibles on the same spot and you never remove them.. if you kill them (as they are destructibles) they will grow again

if you dont have a region use "target point of ability being cast"
 
Level 8
Joined
Sep 9, 2007
Messages
114
Awesome thanks... musta missed that earlier... is there anyway to make the the destructables spawn in a particular path like

(attempts to describe it this way)
__________________________
......................XX......................
......................XX......................
......................XX.......................

X = the destructable

_ = the walls
 
Level 11
Joined
Dec 31, 2007
Messages
780
hum... you may try to trigger it creating a few little regions... when the skill is casted you create a destructible in the small region (or in all of them)

  • Destructible - Create a (your destructible) at (your region) facing (Random angle) with scale 1.00 and variation 0
 
Level 5
Joined
Mar 21, 2007
Messages
155
well you could use points. (points are points in a region) theese are usally defined by X,Y chords from the centre of the region. might take a lot of tweaking but it will work. e.g.

  • Destructible - Create a (Destructible) at ((REGION)) offset by (0.00, 0.00)) facing (Random angle) with scale 1.00 and variation 0
offset 0,0 is the centre of the region. 50,50 is 50 right, 50 up from the centre.
 
Status
Not open for further replies.
Top