| 08-10-2004, 04:28 PM | #1 |
hey, im working on a map where you are supposed to right click a building, then your unit runs to the building, and when you come within range, a dialog appears. I think this would have to be done with 2 triggers, since both the order and the range thing are events. But i cant get it working. For some reason the range thing dont work. Code:
Events
Unit - A unit comes within 100.00 of SomeBuilding 0003 <gen>
Conditions
Actions
Dialog - Show Dialog for (Owner of (Triggering unit))Not even that thing work.. How could the effect i want be done? This is what i tried (sorry, this is a bit messy, this is written by hand and memory): Code:
A unit is issued an order with no target Issued order equal to order(smart) Set SomeUnit = ordered unit Trigger Run trigger2 and then Code:
A unit comes within 100 range of somebuilding Triggering unit equal to SomeUnit Display dialog |
| 08-10-2004, 05:10 PM | #2 |
Tried using <Owner of Entering Unit>? |
| 08-10-2004, 05:36 PM | #3 |
Well, i can make the dialog appear now, but it dont check what the range to the unit is. It works even if the triggering unit is in the other corner of a 256 * 256 map. |
| 08-10-2004, 09:01 PM | #4 |
As long as a unit comes within range of the unt in question, the trigger will activate, 'cuz you don't check for any spesific unit in the conditions. OTher than that, I don't know. |
| 08-11-2004, 12:23 PM | #5 | ||
Try this Quote:
that may work !! remember to place a region around the house !! :god_help_us: Or Quote:
the difrence is that the first one haven't right click on the house |
