How to make the game check who is the host

ragingspeedhorn

New Member
Step 3: Getting The Host.

Now that you have the most of the work done you just need to make a last simple trigger where you set the event to Map initialization, conditions you leave untouched and in the actions you make a custom script like this: "Custom script: call GetHost()". Now it has checked who is the host and stored it in the variable, for further use you just need to address everything to the "Host" variable like you would usually do to Player 1 (red), it is as simple as that.

gethost4il.png


Final note: This is not 100% stable, the gethost() can fail sometimes and select another player, however that is quite rare.
 
Werbung:
Top