I'm trying to make a simple trigger - a unit moving randomly around the map - through triggers. I'm trying to make it so that every time the unit enters within 10.0 of point varA, it sets varA to be a new point, and then issues the order for the unit to move there. But there seems to be a bug with points as variables, so I can't select the variable varA (which is a point type variable) in the event menu (for both actions it works fine). I tried the same with regions as well, but I still can't make the event work, because I can't select my variables as points or regions, the list is just empty.. Is this a bug or am I just stupid? And is there any way around it? I'm on a mac btw, dunno if that matters.
you can only select pre placed points (terrain editor) in events, just like you can only select pre placed units in events.
tells us a little more what exactly you want to achieve? are there more than one units? etc
I'm basically trying to make a flying unit randomly move around the map. It picks a random target point on the map, moves there, and when it arrives picks a new point, moves there and so on, for the duration of the game.
Ok, I solved it. I just created a region (from the beginning of the game), and then I move that region to a random point when the unit enters that region.
Thanks again for clearing up! Didn't know the editor had that limit.
I'm trying to make a simple trigger - a unit moving randomly around the map - through triggers. I'm trying to make it so that every time the unit enters within 10.0 of point varA, it sets varA to be a new point, and then issues the order for the unit to move there. But there seems to be a bug with points as variables, so I can't select the variable varA (which is a point type variable) in the event menu (for both actions it works fine). I tried the same with regions as well, but I still can't make the event work, because I can't select my variables as points or regions, the list is just empty.. Is this a bug or am I just stupid? And is there any way around it? I'm on a mac btw, dunno if that matters.
@larsolae: Go
You cannot use dynamic references in ordinary trigger events; ie they must be preplaced and none changing.
@larsolae: Go
you can only select pre placed points (terrain editor) in events, just like you can only select pre placed units in events. tells us a little more what exactly you want to achieve? are there more than one units? etc
Oh.. Ok thanks for the replies :)
I'm basically trying to make a flying unit randomly move around the map. It picks a random target point on the map, moves there, and when it arrives picks a new point, moves there and so on, for the duration of the game.
Ok, I solved it. I just created a region (from the beginning of the game), and then I move that region to a random point when the unit enters that region. Thanks again for clearing up! Didn't know the editor had that limit.
@larsolae: Go
you can queue your issue orders on the unit. no need to save a region