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

hiding reward triggers for solo and 2 player and 3 player so it hides unused one

broken avatar :(
Created 8 years ago
by AdvancedDecay
0 Members and 1 Guest are viewing this topic.
1,895 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 13 March 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
AdvancedDecay's Groups
AdvancedDecay's Contact & Social Links
hi basically i made a ee with a ray gun reward i just need to know is there a way to hide the 3 unused trigger rewards in solo and the same for 2 players hide the other 2 then for 3 players hide one of the reward triggers cause at the moment I keep getting the hint hand where the other rewards are so I need a little help hiding then until theres 2 3 or 4 players in game
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
hi basically i made a ee with a ray gun reward i just need to know is there a way to hide the 3 unused trigger rewards in solo and the same for 2 players hide the other 2 then for 3 players hide one of the reward triggers cause at the moment I keep getting the hint hand where the other rewards are so I need a little help hiding then until theres 2 3 or 4 players in game

You would still get those ents, but you would then ent hide();, or delete(); based on a condition, players.size or whatever you're using.
Last Edit: March 25, 2016, 02:14:18 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2014
Last active: 3 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
Signature
Dead Palace
×
Riptide1106's Groups
Riptide1106's Contact & Social Links
Yes, just like MakeCents said.

Similar to BluntStuffy's soul chest script; here's an excerpt if seeing an example helps:

Code Snippet
Plaintext
soul_chest_reward()
{
self endon( "took_gun" );
self endon( "disconnect" );

reward_trigger = getentarray( "soul_chest_reward" , "targetname" );
players = get_players();
for(i=0;i<players.size;i++)
{
players[i].free_ray_gun = false;
reward_trigger[i] enable_trigger();
reward_trigger[i] thread reward_trigger( );
}
}
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 13 March 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
AdvancedDecay's Groups
AdvancedDecay's Contact & Social Links
hi, I looked at what u said is there anyway i can  hid the corsur hint
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2014
Last active: 3 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
×
Riptide1106's Groups
Riptide1106's Contact & Social Links
yes, to hide the cursor hint, you would do something like this:

Code Snippet
Plaintext
your_function()
{
your_trigger = getent("your_trigger ","targetname");
your_trigger setCursorHint("HINT_NOICON");
 // replace  all occurrences of your_trigger with the targetname you gave your trigger
}

 
Loading ...