- Joined
- Oct 26, 2023
- Messages
- 3
Hello guys, I have a question regarding a small map I’m making and I was hoping someone with more experience could point me I the right way.
So, my objective is to have a building that when owned by the player would allow him to spawn a wave of ai controlled troops by pressing a button in the UI from anywhere in the map as long has the building is alive and owned by the player. I guess this is similar to the “call to arms” ability only that instead of calling nearby peasants, it would spawn ai controlled units and make them attack a point.
I think I have the spawning/attacking units part nailed down, the part which I’m not so sure is how to make a button for the player to press. Right now, I’m using the building like a shop which sells a dummy item that’s immediately used after being bought. This comes with some draw backs like being able to see the treasure 3d model for a split second under the unit that bought the item or needing to have a unit close to building to actually buy the item. Has anyone done something similar before? Should I use an ability instead of an item?
So, my objective is to have a building that when owned by the player would allow him to spawn a wave of ai controlled troops by pressing a button in the UI from anywhere in the map as long has the building is alive and owned by the player. I guess this is similar to the “call to arms” ability only that instead of calling nearby peasants, it would spawn ai controlled units and make them attack a point.
I think I have the spawning/attacking units part nailed down, the part which I’m not so sure is how to make a button for the player to press. Right now, I’m using the building like a shop which sells a dummy item that’s immediately used after being bought. This comes with some draw backs like being able to see the treasure 3d model for a split second under the unit that bought the item or needing to have a unit close to building to actually buy the item. Has anyone done something similar before? Should I use an ability instead of an item?