| 03-20-2004, 07:35 PM | #1 |
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 | |
Quote:
|
| 03-22-2004, 09:14 AM | #3 |
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 |
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 |
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 |
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 |
make the model *goldmine* if u wan it then but with move ment i dont no |
| 03-25-2004, 12:02 PM | #8 | |
Quote:
Oh, I mainly want the ability for display purposes. I'll definitely try out the idea of abiltiy removal, anyway. Thanks. |
