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

trigger won't spawn

broken avatar :(
Created 12 years ago
by daedra descent
0 Members and 1 Guest are viewing this topic.
3,443 views
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
It just won't and i have no idea why.   :-\

Code Snippet
Plaintext
spawn("trigger_use", (357.397, 767.951,80.125), 0, 128, 128 );
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 18 October 2013
Last active: 2 days ago
Posts
651
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
×
InFInIX's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
InFInIX's Contact & Social Links
do you have a flag like all_players_conected ?
or a notify?
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
You can spawn a trigger radius and make it work the same way as a trigger use.
Code Snippet
Plaintext
spawn_trigger()
{
trigger = Spawn("trigger_radius", (357.397, 767.951,80.125), 60, 35, 60);
trigger setcursorhint("HINT_NOICON");
trigger sethintstring("This is a trigger radius, Press &&1 to delete it");

         while(1)
{
                 players = GetPlayers();
         for (i = 0; i < players.size; i++)
         {
        if(players[i] IsTouching (trigger) && players[i] UseButtonPressed() )
        {
trigger delete();
                        //do your script here
break;
        }
        }
         wait .05;
         }
}
You can also just add a trigger use in radiant and use,
Code Snippet
Plaintext
ent trigger_off();
when the game starts and then you use,
Code Snippet
Plaintext
ent trigger_on();
to turn it on again.
Last Edit: June 22, 2014, 04:23:16 pm by Ege115
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
It just won't and i have no idea why.   :-\

Code Snippet
Plaintext
spawn("trigger_use", (357.397, 767.951,80.125), 0, 128, 128 );

I think it won't because if you try in radiant to give a trigger_use these kvps, origin, radius, height, it doesn't do what you would think. But if you use a trigger_radius, like Edge suggested, then it does, where it works more like a script>struct.
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 7 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
I think it won't because if you try in radiant to give a trigger_use these kvps, origin, radius, height, it doesn't do what you would think. But if you use a trigger_radius, like Edge suggested, then it does, where it works more like a script>struct.
it is an struct actually lol with radius kvp. try giving that kvp to any ent in radiant and see what happen xD

and it wont spawn cause from what i know the only type of triggers you can spawn are "trigger_radious". also if you could spawn a "trigger_use" it wouldnt need the last values u have.

 
Loading ...