I am pretty sure i will need to change the ownership of the items via triggers. So the only thing I really want to know right now is why isnt the offset working?
Okay, I have a hero. this hero spawns items.
This is what I want to do:
1. be able to pickup items with hero, regardless of who dropped the item or if it was created at start for Neutral.2. be able to spawn an item from a hero ability, but the item will not have ownership by the spawning hero, i.e. give to neutral.
3. if possible, I would like the item to spawn on the ground, instead of in the inventory as it is doing now.
This is what I got:
[UNITS]
Hero
- added Inventory
- added Levelup
- added Learn
- added various buttons
DummyItem
- linked to DummyItem (item)
[ABILITIES]
Inventory
Learn
- added SpawnDummyItem
SpawnDummyItem
- set as Train type
- trains DummyItem (unit)
[BEHAVIORS]
Levelup
[BUTTONS]
DummyItem
Learn
[ACTORS]
Hero
- set to model Ghost.
DummyItem
- set to model Crate.
[ITEMS]
DummyItem
- attached DummyItem (button) as Face.
- set Class to DummyItemClass (itemclass)
[ITEMCLASSES]
DummyItemClass
The names of units, abilities, items, etc have been changed, but the rest follows form.
So far, my hero can only pickup items that he spawns himself. I want him to be able to pickup existing ones, as the map is designed to be a race to gather items and reach the goal to win. The spawn ability does technically work, just it spawns into the inventory and it belongs to that player.
There are various other setting not mentioned that I dont believe are relevant, if you think otherwise, please dont hesitate to ask.
(#1) Figured out the picking up part, I had forgot to link to items, thus it didnt register that it was able to be picked up, lol.
(#2) Works now via trigger. For those interested, I am using Event: Unit Created (by ability), Action: Change Owner of (Created Unit) to player 0.
(#3) Offset doesnt work in the ability (type: train) - offset.
@BasicGear: Go
Doesnt help.
I am pretty sure i will need to change the ownership of the items via triggers. So the only thing I really want to know right now is why isnt the offset working?
1. be able to pickup items with hero, regardless of who dropped the item or if it was created at start for Neutral.2. be able to spawn an item from a hero ability, but the item will not have ownership by the spawning hero, i.e. give to neutral.3. if possible, I would like the item to spawn on the ground, instead of in the inventory as it is doing now. This is what I got: [UNITS] Hero - added Inventory - added Levelup - added Learn - added various buttons DummyItem - linked to DummyItem (item) [ABILITIES] Inventory Learn - added SpawnDummyItem SpawnDummyItem - set as Train type - trains DummyItem (unit) [BEHAVIORS] Levelup [BUTTONS] DummyItem Learn [ACTORS] Hero - set to model Ghost. DummyItem - set to model Crate. [ITEMS] DummyItem - attached DummyItem (button) as Face. - set Class to DummyItemClass (itemclass) [ITEMCLASSES] DummyItemClassThe names of units, abilities, items, etc have been changed, but the rest follows form. So far, my hero can only pickup items that he spawns himself. I want him to be able to pickup existing ones, as the map is designed to be a race to gather items and reach the goal to win. The spawn ability does technically work, just it spawns into the inventory and it belongs to that player. There are various other setting not mentioned that I dont believe are relevant, if you think otherwise, please dont hesitate to ask.
(#1) Figured out the picking up part, I had forgot to link to items, thus it didnt register that it was able to be picked up, lol. (#2) Works now via trigger. For those interested, I am using Event: Unit Created (by ability), Action: Change Owner of (Created Unit) to player 0. (#3) Offset doesnt work in the ability (type: train) - offset.