Wednesday, April 18, 2012

Show Tower Range

I have searched for this .. Found Nothing..

I need a trigger that show the current range of the selected Tower..

Someone got a trigger for that?|||Code:
Game - Display to ("your player") the text: (String((Current acquisition range of ("your unit"))))

obviously the data between the brackets are the once you change to your unit.|||.. I did know that.. But its not that..

Like this Picture:



The White circle represents the Range of the unit

This is a little bit more complicated..|||Well what you want to do, is possible, but you would need a unit with that model which is located at.


Code:
UI\Feedback\TargetPreSelected\TargetPreSelected.mdl

you'd need to adjust a couple of properties in the object editor.

Then you'd to make a trigger for the click event of an tower that you clicked, next is to create that unit on top of that tower, and set the size of the unit equal to the acquisition range of the selected tower.

Then when it's deselected you'd want to remove that unit.

This all is not too hard, what could be more advanced, is removing the units from the correct towers seeing you can select more than 1 unit.

You could do that with either with Hashtables or Multidimensional Arrays.|||can you make a tut or just a trigger exsample?

Help Appriciated!

No comments:

Post a Comment