| 11-01-2003, 02:44 PM | #1 |
When an item drops, I want a rect to be created or moved around the item that was just dropped. It looks like I can move a rect from an array I created, but I can't move the rects that I created in WE? Are the rects static, unable to move? Is there a better way to do this? When the item drops, I want order all creeps to try and pick up that item. The best way I've been able to come up with is to move a rect around the item, and tell all creeps to move to the center of that rect. Once there do a pick up random item in rect command. If I could do unit - a unit enters a rect and choose a rect from my array, destinationrect(1), it would be fine. But it appears that i can't choose rects from an array for this event... Suggestions? |
| 11-01-2003, 02:58 PM | #2 |
I haven't got access to WE, but you could just order them to move to the position of the item using [position of unit]. I'm pretty sure that would work. |
| 11-01-2003, 03:03 PM | #3 |
Ok i was a little vague i guess. I can get them to move the location i want through this unit - a unit loses an item . . . rect - center DestinationRect(1) on offsext... that part works. The creeps will now go to my rect from within my rect array. The problem happens after that. You can not create a unit - a unit enters a rect on a rect that is in an array. It will only let me select a rect that I have defined on the map itself through WE. So the problem is that I can not have a trigger for them entering the rect, hence can not trigger the item - pick every item in rect command. Hope that is more clear. |
| 11-01-2003, 03:36 PM | #4 |
If you're using TFT then you could use the Add Event (in the Triggers section of Actions) action at the end of the trigger that orders the units to move to the location of the rect. If you use Add Event then you can define variables as your rect in the Unit Enters Rect event. I hope you understand. |
