• 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.

[General] Host Detection

Status
Not open for further replies.
Level 3
Joined
Feb 28, 2013
Messages
30
Hello hivers specially gui lords here :) need some help about host. I need trigger that the only host can select game modes ex: player blue, teal etc.. is the host or game creator, the other players can't select game modes :eekani:
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
If the host has static player slot (e.g. Host is always Player 1 (Red) and whoever takes that slot will be considered Host), then when anyone writes the command for game mode, you check if that player == the host player (it's under "Player comparison" conditions).

If host is supposed to be dynamical (e.g. I create the game and let players join it, so no matter which player slot I choose, I will be considered the host), then try what is in this tutorial: http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/how-make-game-check-who-host-25687/
And then, when anyone writes the command for game mode, you make Player comparison check to check if that player == Host (note, as Host here I mean the variable used in the tutorial above)
 
Status
Not open for further replies.
Top