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

Round Start Trigger

HOT
broken avatar :(
Created 12 years ago
by pashan
0 Members and 1 Guest are viewing this topic.
6,164 views
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
How do i make it so that when the player hits a trigger and then round 1 starts.
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 6 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Scripter Elite
My Groups
More
×
YaPh1l's Groups
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Well, put your code to wait on the trigger in round_start() to prevent it from proceeding until a player activates the trigger.

- Phil.
Marked as best answer by pashan 12 years ago
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Go to,

root/mods/mapname/maps/_zombiemode.gsc
And open _zombiemode.gsc and hold CTRL and press F and search for,

Code Snippet
Plaintext
round_start()
And it is not the line that says level thread or something like that, search for the line that ONLY says round start.
And add this right under the bracket {
Code Snippet
Plaintext
round_trigger = getent ("round_trigger","targetname");
round_trigger waittill ("trigger");

So it look like this,
Code Snippet
Plaintext
round_start()
{
round_trigger = getent ("round_trigger","targetname");
round_trigger waittill ("trigger");

And make a trigger_use in radiant and give it this KVP,

targetname

round_trigger

Edit: I know that there is a tutorial about this but it is a bit different between doing this on the UGX mod and in the regular way.
Last Edit: March 26, 2014, 10:44:55 pm by Ege115
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
you made a mistake in your script

Before:

Code Snippet
Plaintext
round_trigger = getent ("targetname",round_trigger");
round_trigger waittill ("trigger");

After:
Code Snippet
Plaintext
round_trigger = getent ("targetname","round_trigger");
round_trigger waittill ("trigger");

Spot the difference

Hint: "

Thank you for the script btw

- pashan

Post Merge: March 26, 2014, 07:41:31 pm
I am also getting an error which i don't know how to fix


Last Edit: March 26, 2014, 07:49:09 pm by pashan
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
It should work, it does work for me.

Press the console button under ESC and type,
Code Snippet
Plaintext
developer 1
And launch your map and show me what it says.
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
i did and says the same thing as the image from my last post
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Okey, show me the console by hold SHIFT and press the console button, and show me were it may say script errors in a red text.

Edit: And to see the error in console, you have to type developer 1 first and then open up console. That is what I have to do to see script errors in console.
Last Edit: March 26, 2014, 08:32:25 pm by Ege115
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Are there more than that script error at the top of the image?
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
no
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Have you done some scripting in yourmapname.gsc lately?

Try to comment out the two lines of script I gave you from _zombiemode.gsc and see if it works again just to find out if it is the lines I gave you that causes the error, but it shouldn't be because of that as the console doesn't say anything about any error from _zombiemode.gsc
Last Edit: March 26, 2014, 08:45:35 pm by Ege115
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Its not from your script. Sorry.
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Hmm, an another way to find script errors is to type,
Code Snippet
Plaintext
developer_script 1
Try that and see if there are any errors coming from the console.
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
I made my map work and also added your script, but your script dosn't work the round just starts even when i haven't touched the trigger.
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Are you sure that you added it in the right place in zombiemode?

You maybe forgot to remove the comments in _zombiemode.gsc which I said before to test if it was that which caused the error?

 
Loading ...