| 07-13-2004, 12:58 AM | #1 |
I make no claim to know anything beyond the basic syntax of JASS, and as so far it seems impossible to get the position of a variable unit (I'm using the type "Unit" if it helps, I really don't think that's the problem however. It's also not an array). I was wondering if anyone could help me out on this? This is pretty much what I'm trying to do through the gui, but it won't let me use the unit variable: Unit - A unit enters (Region centered at (Position of unitvariable) with size (50.00, 50.00)) |
| 07-13-2004, 01:20 AM | #2 |
you cant use unit-variables for "unit whiting range(or region centered) of unit", only units that are already exist on the map |
| 07-13-2004, 01:25 AM | #3 |
Is that a fact or are you just reiterating what I said in that *I* can't use variable units. I'm hoping the latter :\ Edit: Regaurdless, I decided to just place the unit on the map and move it to where I need it to be. I'd still like an answer if anyone has one though. |
| 07-13-2004, 01:31 AM | #4 | |
Quote:
exactly :D |
| 07-13-2004, 03:52 AM | #5 |
You can make another trigger that adds an event to your trigger. Whenever a qualifying unit comes into existence, use the Trigger - Add Event action to add that specific unit entering your region as an event. Of course, if you have many qualifying units, it might be best to figure out how to remove the event also, if the unit dies. |
| 07-13-2004, 05:56 AM | #6 |
There's an action to remove events? I've been thinking of creating an entire trigger for each instance and destroying the entire trigger. |
| 07-13-2004, 06:04 AM | #7 |
You'd be like the ultimate economic whore of map editing :D |
