HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Select a Unit

06-15-2003, 04:58 AM#1
BananaTwist
Ok, so im making this map, and i want it select the unit for you, i got it to work but all of a sudden now when i play it, it doesn't select the unit, i haven't been using the test map button, I think it's cuz i leave the editor open when im playing it.

Here are my triggers:

Event: Player 1 chats message "-hover" as an exact match
Actions: Apply camera 7 for player 1 ove 1.00 seconds
Lock camera for player 1 to "hover 13"
Turn on trigger Bumper Extra <gen>

This is where the prob is, the next trigger:
Initially off
Event: Every .02 second of the game
Actions: Pick every unit in player group-player 1 and select
hover 23


Any opinions on why it won't work?
06-15-2003, 04:59 AM#2
BananaTwist
And if you want, i will acknowledge you in the map when it is completed :)
06-15-2003, 06:43 AM#3
Dead-Inside
Umm, what do you have in the group? I think maybe that's not the best way...
06-15-2003, 08:09 AM#4
Krakou
Why do you do a periodic trigger ? Would't it be enough to select the unit once ?

What is the purpose of picking every unit to only select one ? Instead of doing a pick every unit in..., simply do an action select hoover 13.
06-15-2003, 10:35 AM#5
Guest
if its multiplayer then do this:

if local player = player1 then select hover 23 else do nothing
or something like this

if its single player then all you need to do is select hover 23

i dont know if you have to use sync selections. i would like to know that.
06-15-2003, 03:56 PM#6
ChrydGod
If you don't call syncselections the game will definitely desync.

If you don't know about jass, what you could do is convert an empty trigger to custom text and add the line :
call SyncSelections() in its actions

Then all you need to do is run this trigger at THE END OF YOUR SELECTION TRIGGER ACTIONS.

Regards
06-15-2003, 07:08 PM#7
BananaTwist
oops sorry i meant pick every player in player group, sorry, and i need it periodical so you can't select another unit.