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

How to make a non power switch?

broken avatar :(
Created 5 years ago
by minidude140
0 Members and 1 Guest are viewing this topic.
547 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 June 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
minidude140's Groups
minidude140's Contact & Social LinksMinidude140
I am building a map where the trigger for the PAP door is down a spiral hallway that you will have to fight your way out of.  I want to give my trigger an in-game switch or even button.  I was going to build a power switch but give the trigger KVPs the ones for the door, but I am not sure if that will work.  Do I just build the button/switch with another brushmodel that rotates or moves like I would a door? 

Double Post Merge: November 17, 2018, 11:09:54 pm
(Maybe by the time I reach the 10 approved posts I will stop asking dumb questions)  Yeah you totally just give it the Scipt_angles KVP you want and target it to the trigger. 
Last Edit: November 17, 2018, 11:09:54 pm by minidude140
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 4 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
I am building a map where the trigger for the PAP door is down a spiral hallway that you will have to fight your way out of.  I want to give my trigger an in-game switch or even button.  I was going to build a power switch but give the trigger KVPs the ones for the door, but I am not sure if that will work.  Do I just build the button/switch with another brushmodel that rotates or moves like I would a door? 

Double Post Merge: November 17, 2018, 11:09:54 pm

(Maybe by the time I reach the 10 approved posts I will stop asking dumb questions)  Yeah you totally just give it the Scipt_angles KVP you want and target it to the trigger.
I have no idea what you are saying but I guess you need something like this?:

Code Snippet
Plaintext
nonpowerbutton()
{
button= getEnt("powerbutton","targetname");
button setHintString("Press a button");

button waittill("trigger",player);
button playsound("computer_button");

    flag_set( "electricity_on" );
    // level maps\dlc3_code::power_electric_switch_on();
}
With this you can make a triggeruse with targetname: "powerbutton" and it will open all doors that needs electricity. 
For perks this will not work the same way.
Uncomment the last function to let it also work with perks.

 
Loading ...