HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding Gold Mine ability.

03-20-2004, 07:35 PM#1
Alfryd
I seem to have a problem whereby adding the gold mine ability to a unit within a trigger leaves me unable to set the units' gold amount. If I give the unit that ability in the Editor, this doesn't occur. Is there any workaround?
03-20-2004, 07:40 PM#2
SSJ4Goku
Quote:
Originally Posted by Alfryd
I seem to have a problem whereby adding the gold mine ability to a unit within a trigger leaves me unable to set the units' gold amount. If I give the unit that ability in the Editor, this doesn't occur. Is there any workaround?
add abilty not hero but the first one it says Gather
03-22-2004, 09:14 AM#3
Alfryd
I don't want the unit to gather gold. I want the unit to be a gold mine.
03-22-2004, 12:53 PM#4
AIAndy
That is the native for setting the gold amount in a mine:
native SetResourceAmount takes unit whichUnit, integer amount returns nothing
03-22-2004, 05:31 PM#5
Alfryd
Yes, I've been using this, but SetResourceAmount seems to have no effect unless I equip the unit with the gold mine ability in the Unit Editor. My problem was that I wanted to use UnitAddAbility on the unit in-game, to make it a gold mine, and then set resources.
03-22-2004, 08:28 PM#6
AIAndy
Hmm, you could try to give the unit the gold mine ability in the Unit Editor and then remove it at the creation of that unit and then readd it when the time has come.
03-22-2004, 08:34 PM#7
SSJ4Goku
make the model *goldmine* if u wan it then but with move ment i dont no
03-25-2004, 12:02 PM#8
Alfryd
Quote:
Originally Posted by SSJ4Goku
make the model *goldmine* if u wan it then but with move ment i dont no

Oh, I mainly want the ability for display purposes. I'll definitely try out the idea of abiltiy removal, anyway. Thanks.