HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to get the ordering player ?

06-12-2008, 08:02 AM#1
Changaco
Hi.

I'm searching for a way to find which player just gave an order which is captured by this event :
Collapse JASS:
    call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
Of course I tried the "GetTriggerPlayer()" function but it returns the owner of the unit.
So I looked for a "GetOrderingPlayer()" function but I doesn't seem to exist.
After that I thought about searching which player is selecting the ordered unit but if two ( or more ) players are selecting it won't work ...
That's why I'm asking you pros of JASS if it is possible or not.
06-12-2008, 08:26 AM#2
grim001
GetOwningPlayer(GetTriggerUnit())
06-12-2008, 08:51 AM#3
Changaco
grim001 the ordered unit is controlled by several players so I can't do that.
06-12-2008, 04:19 PM#4
chobibo
Could you provide the entire code rather than just one line, we can't help you if we don't understand what you're trying to do.
06-12-2008, 04:22 PM#5
Captain Griffen
I do not believe it is possible.
06-12-2008, 07:34 PM#6
Changaco
Quote:
Originally Posted by Captain Griffen
I do not believe it is possible.
That's my opinion too unfortunately.
So to fill this gap of JASS is there an easy way to hide a unit to a player but not to his allies ?
06-14-2008, 08:16 PM#7
Pyrogasm
Depends what you want to do with it. If it's just going to be moved around and ONLY do things visually, then you can hide it locally or move it somewhere else on the map locally.

Why do you need it hidden for 1 player but not the rest?