For some days now ive tried to fix this weird thing looking up countless workarounds and posts...
It seems you can't add items through triggers to a building inventory?
Im using the same inventory ability on buildings and units. The same trigger does work on units with an inventory.
(manualy giving an item in game from a unit to a building works though)
Im kind of new to this engine and working on this for a school project :) help would be really appreciated!!
Thanks for the reply! Yes, and many other work arounds, my hair turned grey :)
coincidentally i found a fix finally. It makes totally no sense but i had to give the particular building unit speed...
The building obviously still has no movement without any abilities to move. Anyways any other value than 0 for acceleration/lateral/speed did the job.
Is there anyway to mark this as solved?
This is definitely a fix for not being able to create an item using triggers
in a building i had to set all movement fields to anything but 0
I know this thread is getting a bit dated, but I just wanted to clarify on the "issue".
Whenever a unit is trained via the trained ability, it is ALWAYS placed on the ground outside the shop before the game internally moves it into the casters inventory. The reason a "structure" would need a movement speed would be so it could nudge close enough to "grab" the item.
Purchasing an item via the train ability is the same thing as creating a unit at a shop, moving it instantly to the feet of the caster, then ordering the caster unit to pick up the item. The only difference internally is the game registers the normal train ability as a "Any unit -buys- any item" event.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hey people,
For some days now ive tried to fix this weird thing looking up countless workarounds and posts... It seems you can't add items through triggers to a building inventory? Im using the same inventory ability on buildings and units. The same trigger does work on units with an inventory. (manualy giving an item in game from a unit to a building works though)
Im kind of new to this engine and working on this for a school project :) help would be really appreciated!!
Tried using a Create Unit effect as a data work around?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Thanks for the reply! Yes, and many other work arounds, my hair turned grey :) coincidentally i found a fix finally. It makes totally no sense but i had to give the particular building unit speed... The building obviously still has no movement without any abilities to move. Anyways any other value than 0 for acceleration/lateral/speed did the job.
Is there anyway to mark this as solved?
This is definitely a fix for not being able to create an item using triggers
in a building i had to set all movement fields to anything but 0
As a moderator I can change it to soleved if the maker of the thread is too lazy or dead.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I know this thread is getting a bit dated, but I just wanted to clarify on the "issue".
Whenever a unit is trained via the trained ability, it is ALWAYS placed on the ground outside the shop before the game internally moves it into the casters inventory. The reason a "structure" would need a movement speed would be so it could nudge close enough to "grab" the item.
Purchasing an item via the train ability is the same thing as creating a unit at a shop, moving it instantly to the feet of the caster, then ordering the caster unit to pick up the item. The only difference internally is the game registers the normal train ability as a "Any unit -buys- any item" event.