• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

detecting the host

Status
Not open for further replies.
Level 6
Joined
Sep 13, 2008
Messages
261
I don't believe there is a trigger for that. But what most people I've seen do is make player 1 red have full host powers.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Easilly done with triggers however it is not always reliable, and may return the wrong person if the host is on a LAN network with another player or if the host has a too slow computer.

You use get local player to get the value of the player's PC when they run that action and imediatly sync it, the person who syncs first is the host. Search for the JASS functions, there have been countless made that do it semi reliably.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
GhostWolf I proved you wrong ages ago, my brother was once detected as host of a game which used the system although his computer was quite a bit slower than mine.

Like I said it can fail if on a LAN network with another player as that has approximatly 0 ping so it almost purly comes down to speed. If a virus scan or something happens to slow the host down then, it is possiable that he will not be detected as the host. However I never had it give someone I did not know well the host status.

Overall its inaccuracies are not a problem.
 
Status
Not open for further replies.
Top