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

Disable wall weapon

broken avatar :(
Created 8 years ago
by niick555
0 Members and 1 Guest are viewing this topic.
3,253 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 8 June 2015
Last active: 7 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
niick555's Groups
niick555's Contact & Social Links
Good night, all right ?!
Well, I have a problem on my map... I put a wall weapon "secret" behind a model that would be accessible only when performing an easter egg that moves this model, though when I'm playing, I'm getting access to trigger it through the model... That is, I can buy a weapon without making the easter egg. Is there any way to get this wall weapon off until it receives a flag or until a variable is set to "true"? I tried in various ways but could not...

Thank you!
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 4 days ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Code Snippet
Plaintext
trigger disable_trigger();
// waittill here
trigger enable_trigger();
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 8 June 2015
Last active: 7 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
niick555's Groups
niick555's Contact & Social Links
Code Snippet
Plaintext
trigger disable_trigger();
// waittill here
trigger enable_trigger();

I tried this... But wallweapon is a prefab, is there any way to disallow the trigger of a prefab? Also, it would disable the trigger all the weapons wall on map, right?
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 4 days ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I tried this... But wallweapon is a prefab, is there any way to disallow the trigger of a prefab? Also, it would disable the trigger all the weapons wall on map, right?

Go inside the prefab and check the targetname. If targetname is used on all wallweapons, you can use script_noteworthy or target
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 8 June 2015
Last active: 7 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
niick555's Groups
niick555's Contact & Social Links
Go inside the prefab and check the targetname. If targetname is used on all wallweapons, you can use script_noteworthy or target

Yes, but the trigger is inside the prefab... I can use this command and disable a trigger inside the prefab? I tried and I could not...
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Yes, but the trigger is inside the prefab... I can use this command and disable a trigger inside the prefab? I tried and I could not...

Just stamp the prefab by clicking the stamp icon in top bar in radiant. 3rd one from end.
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 8 June 2015
Last active: 7 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
niick555's Groups
niick555's Contact & Social Links
Just stamp the prefab by clicking the stamp icon in top bar in radiant. 3rd one from end.

All right, I'll try with these tips here! Thank you!
Marked as best answer by niick555 8 years ago
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
You don't have to stamp the prefab. It does not matter in game. The trigger can be in a prefab or anything, all that matters is the kvps.

First get the ent or ent array and then disable the trigger you wish some how, based on kvps, using disable or trigger off or hide, or any of those will work. Sometimes there are issues if the trigger is linked to something, but this should not be the case with a wall weapon and if it was, you could then just unlink it first.


Edit:
for example, I use this to disable specific triggers during my gun game, via targetname, which can be edited for more specific trigger kvp conditions if you like.
Code Snippet
Plaintext
//the following is thread in mapname.gsc or somewhere
//thread DisableTheseTriggers("weapon_upgrade");
//thread DisableTheseTriggers("zombie_vending_upgrade");
//thread DisableTheseTriggers("treasure_chest_use");

DisableTheseTriggers(name){
wait(3);
trigs = GetEntArray( name,"targetname" );
for( i=0;i<trigs.size;i++ ){
trigs[i] SetHintString( "This feature is disabled during this game mode" );
trigs[i] disable_trigger(  );
}
}

Last Edit: February 01, 2016, 02:23:16 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 8 June 2015
Last active: 7 years ago
Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
niick555's Groups
niick555's Contact & Social Links
You don't have to stamp the prefab. It does not matter in game. The trigger can be in a prefab or anything, all that matters is the kvps.

First get the ent or ent array and then disable the trigger you wish some how, based on kvps, using disable or trigger off or hide, or any of those will work. Sometimes there are issues if the trigger is linked to something, but this should not be the case with a wall weapon and if it was, you could then just unlink it first.


Edit:
for example, I use this to disable specific triggers during my gun game, via targetname, which can be edited for more specific trigger kvp conditions if you like.
Code Snippet
Plaintext
//the following is thread in mapname.gsc or somewhere
//thread DisableTheseTriggers("weapon_upgrade");
//thread DisableTheseTriggers("zombie_vending_upgrade");
//thread DisableTheseTriggers("treasure_chest_use");

DisableTheseTriggers(name){
wait(3);
trigs = GetEntArray( name,"targetname" );
for( i=0;i<trigs.size;i++ ){
trigs[i] SetHintString( "This feature is disabled during this game mode" );
trigs[i] disable_trigger(  );
}
}


Thank you very much, I could understand a little better now!

 
Loading ...