Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
Warcraft Tools and Tutorials
How to make the game check who is the host
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ragingspeedhorn" data-source="post: 122402" data-attributes="member: 5868"><p><span style="font-size: 10px"><strong>Step 3:</strong> Getting The Host.</span></p><p></p><p>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: "<em>Custom script: call GetHost()</em>". 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 "<em>Host</em>" variable like you would usually do to Player 1 (red), it is as simple as that.</p><p></p><p><img src="http://img138.imageshack.us/img138/8503/gethost4il.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Final note:</strong> This is not 100% stable, the gethost() can fail sometimes and select another player, however that is quite rare.</p></blockquote><p></p>
[QUOTE="ragingspeedhorn, post: 122402, member: 5868"] [SIZE=2][b]Step 3:[/b] Getting The Host.[/SIZE] 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: "[i]Custom script: call GetHost()[/i]". 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 "[i]Host[/i]" variable like you would usually do to Player 1 (red), it is as simple as that. [img]http://img138.imageshack.us/img138/8503/gethost4il.png[/img] [b]Final note:[/b] This is not 100% stable, the gethost() can fail sometimes and select another player, however that is quite rare. [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
Warcraft Tools and Tutorials
How to make the game check who is the host
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top