UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Rounds don't start Till Something Happens

broken avatar :(
Created 10 years ago
by Tim Smith
0 Members and 1 Guest are viewing this topic.
2,435 views
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 4 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social LinksTimSmithtimsmith90THEREALBaDBoY17My clan Website
So i'm thinking , how can i make make the rounds don't activate/Start unless i hit a specif  "script_origin" ?
Thanks in Advance.
Last Edit: April 15, 2016, 07:01:52 am by Tim Smith
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 4 months ago
Posts
1,863
Respect
Forum Rank
Zombie Destroyer
Primary Group
Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
So i'm thinking , how can i make make the rounds don't activate/Start unless i hit a specif  "script_origin" ?
Thanks in Advance.

http://ugx-mods.com/forum/index.php/topic,10468.0.html

thezombiekilla gave a pretty decent and easy guide to it, of course you can do more with this, like menu stuff, etc. but for what you want this is perfect.
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 4 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social LinksTimSmithtimsmith90THEREALBaDBoY17My clan Website
http://ugx-mods.com/forum/index.php/topic,10468.0.html

thezombiekilla gave a pretty decent and easy guide to it, of course you can do more with this, like menu stuff, etc. but for what you want this is perfect.

Thx for guiding me out. Thou This uses a door doesn't it conflicts with a script_origin ?
Last Edit: April 15, 2016, 07:39:11 am by Tim Smith
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
If you mean the first round then you can do something like this, a trigger would be easier:

https://ugx-mods.com/forum/index.php/topic,5861.msg64579.html#msg64579


But if for some reason your set on a script_origin, then you could just add a while loop that checked the distance of each player to the script_origin, and when it was less, broke the loop.
Code Snippet
Plaintext
	startGame = getent("startGame","targetname");
//flag_wait( "all_players_connected" );//make sure this is above this script or add it here
players = get_players(  );
for( i=0;i<players.size;i++ ){
if(Distance( players[i].origin,startGame.origin )<100) break;
}
level thread round_start();

If you can start the game from multiple then more like:
Code Snippet
Plaintext
	startGames = getentarray("startGame","targetname");
//flag_wait( "all_players_connected" );//make sure this is above this script or add it here
players = get_players(  );
for( i=0;i<players.size;i++ ){
for( o=0;o<startGame.size;o++ ){
if(Distance( players[i].origin,startGames[o].origin )<100) break;
}
}

If it is each round then you could do the same thing just in the round_think() or in round_wait() function.
Last Edit: April 15, 2016, 12:27:58 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 4 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social LinksTimSmithtimsmith90THEREALBaDBoY17My clan Website
Ok i'll test it. Thx for the help thou.

 
Loading ...