| 09-25-2007, 10:53 PM | #1 |
I'm working on a system and I need to have a unit which all players can select. On the unit would be spells/items/units that any player could click. Now, the problem is detecting which player clicked. I originally wanted spells on a unit which had shared control, but I was unable to find a way to get the player who casted the ability (always returned the owner). I'm now using a marketplace, but I need to remove the stock numbers from the items/units for sale. I thought I was able to once before, but now I cannot replicate such feat. I'm also open to other ideas about a global unit which all players can select. |
| 09-25-2007, 11:25 PM | #2 |
I accomplished this by placing multiple buildings all in the same place, one for each player. I then set the unit's scaling value to 0 as long as the owner was not equal to local player so that each player could see and therefore select only his building. Then I could use abilities instead of units to avoid seeing the stock number. |
| 09-26-2007, 12:34 AM | #3 |
Should work, thanks for the idea! |
