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

[Solved] Mine Tower

Status
Not open for further replies.
Level 9
Joined
Aug 16, 2008
Messages
319
I'm about to create a spell of a tower that the goblin mine dummy will automatically place land mines. The problem is it's bugged about indexing.

Produce Mine
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Produce Mine to...
(Casting unit) Equal to MineProducer[MineProducerMain]
Actions
Set MineProducerMain = (Custom value of (Casting unit))
Unit - Move MineProducerTarget[MineProducerMain] instantly to (Target point of ability being cast)
 
Level 9
Joined
Aug 16, 2008
Messages
319
Dome fixing the point leak. Here are the rest of Mine tower trigger.

Mineproducer
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Mine Producer
Actions
Set MineProducerMain = (Custom value of (Constructed structure))
Set TowerPoint = (Position of (Constructed structure))
Set MineProducer[MineProducerMain] = (Constructed structure)
Unit - Create 1 Mine Target for (Owner of (Constructed structure)) at TowerPoint facing Default building facing degrees
Set MineProducerTarget[MineProducerMain] = (Last created unit)
Custom script: call RemoveLocation(udg_TowerPoint)

Mineproducer Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Mine Producer
Actions
Set MineProducerMain = (Custom value of (Dying unit))
Unit - Kill MineProducerTarget[MineProducerMain]
 
Status
Not open for further replies.
Top