HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bring up targeting cursor for ability

02-19-2005, 02:52 AM#1
aaero
Hey,

I'm making an airstrike ability where a unit can purchase an air strike from one of their shops. Ideally, I would like to have them purchase this item and immediately receive a targeting cursor so they are forced to place it somewhere. Unfortunately, there doesn't seem to be a capability to do this.

I haven't found a good way to do this. If anyone has an idea or an alternate solution, let me know.
02-19-2005, 02:55 AM#2
johnfn
That is a good question.

I think probably the best way would be to have a trigger detect him buying from a store, then order him to cast a spell that requires a target. When the game detects that the target has been chosen, it creates the item at that location. That would be fun to do... and shouldnt be too hard.
02-19-2005, 07:26 PM#3
aaero
That was pretty much the path I was thinking of taking, the problem is ordering them to begin casting a spell without choosing an actual target. IE - If you want someone to cast Blizzard, you have to specify a point for them to cast it on. I would love to be incorrect though, let me know if you have a way to start the casting without choosing a target.
02-19-2005, 09:28 PM#4
ThyFlame
Quote:
Originally Posted by aaero
That was pretty much the path I was thinking of taking, the problem is ordering them to begin casting a spell without choosing an actual target. IE - If you want someone to cast Blizzard, you have to specify a point for them to cast it on. I would love to be incorrect though, let me know if you have a way to start the casting without choosing a target.


... except thats want you WANT...

You just said you wanted to have to pick a target via a targeting cursor, which by creating a dummy unit, selecting the unit, and ordering it to cast the dummy spell with an infinite range, you'd get exactly what you want.

I don't see the problem.
02-19-2005, 09:46 PM#5
Guest
Use the 'reveal' ability founded in Neutral Hostile>Units. It needs to be placed AND costs money to use.
02-20-2005, 01:14 AM#6
aaero
ah perfect CTB, thanks a lot. I should be able to get that working. I forgot about that ability and just couldn't figure out how to do it.

ThyFlame, I must not have explained myself too well, cause it sounds like I was misinterpreted. Regardless, CTB knew what I was talking about, so it's all worked out now :)