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

[Tutorial] Lights controlled by triggers

HOT
broken avatar :(
Created 9 years ago
by BluntStuffy
0 Members and 1 Guest are viewing this topic.
16,580 views
broken avatar :(
×
broken avatar :(
Location: lt
Date Registered: 8 January 2015
Last active: 5 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Erebuss's Groups
Erebuss's Contact & Social Links
Did you give both the targetname and the script_string. Also note the targetname has two L's at the end, a typo  :(

Code Snippet
Plaintext
targetname		-		light_controll

Yeah, i forgot to add targetname :D silly me.. Everything is working now, thanks.
broken avatar :(
×
broken avatar :(
Location: lt
Date Registered: 8 January 2015
Last active: 5 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Erebuss's Groups
Erebuss's Contact & Social Links
And another question.. It is possible to make the light turn on or start flickering after electricity is turned on? I tried adding flag_wait eeletricity on to you script, but it gave me an error.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 months 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
And another question.. It is possible to make the light turn on or start flickering after electricity is turned on? I tried adding flag_wait eeletricity on to you script, but it gave me an error.

Line should be like flag_wait("electricity_on"); Add that just before the light you want to be activated
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
There's a stock light for that, That turns on as soon as the power gets turned on.
Read the OP, this part:

Code Snippet
Plaintext
UPDATE, Stock lights. no scripting required
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 3 years ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
Signature
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
is there a simpler version of this? like what do i need to do if i just wanted to do lights on off via a light switch

Double Post Merge: January 25, 2015, 07:58:13 pm
+1 tho :D
Last Edit: January 25, 2015, 07:58:13 pm by Rorke
broken avatar :(
×
broken avatar :(
Location: lt
Date Registered: 8 January 2015
Last active: 5 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Erebuss's Groups
Erebuss's Contact & Social Links
There's a stock light for that, That turns on as soon as the power gets turned on.
Read the OP, this part:

Code Snippet
Plaintext
UPDATE, Stock lights. no scripting required

Yeah I know about this stock method, but I need fast_strobe light right after electricity is on
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
is there a simpler version of this? like what do i need to do if i just wanted to do lights on off via a light switch

Double Post Merge: January 25, 2015, 07:58:13 pm
+1 tho :D

Doesn't get much simpler then this i'm affraid.

-download the script, put it in your mods folder
-add two line's of code. One in your mapname.gsc, and one in your mapname.csc ( in the OP )
-open radiant
-create a light, read the OP for the KVP's / spawnflags
-create a trigger_use or a trigger_multiple, again the KVP's are in the OP
-compile
-done

Also with the download is a textfile with description of the KVP's. and a how-to-install file..
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 3 years ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
ooppss maybe i should of downloaded it first
thanks bro
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
ooppss maybe i should of downloaded it first
thanks bro

 :) np. If something is not clear or not working, just ask..
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 3 years ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
:) np. If something is not clear or not working, just ask..
ok cheers bud  +1
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
Because all of these need to be primary lights you dont want to have their radius overlap each other too much, or you will prob end up with light / dark spots and/or glitchy lighting. That should be all..


does the same problem occur if the two radii overlap are a  standard light and a primary light and not two primary lights?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 July 2014
Last active: 4 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Methegamer333's Groups
Methegamer333's Contact & Social Links
first i tried to get a simple on off to work. it took me a bit to get it working but i got it. i tried to put  it in another map and now the light just stays on and doesnt respond to the trigger. any help??? thanks.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
first i tried to get a simple on off to work. it took me a bit to get it working but i got it. i tried to put  it in another map and now the light just stays on and doesnt respond to the trigger. any help??? thanks.

If it worked in the first map, you prob just forgot a KVP or a call to a script somewhere. Double check the targetname's etc and make sure the scripts are called from mapname.gsc / .csc
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 July 2014
Last active: 4 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Methegamer333's Groups
Methegamer333's Contact & Social Links
If it worked in the first map, you prob just forgot a KVP or a call to a script somewhere. Double check the targetname's etc and make sure the scripts are called from mapname.gsc / .csc
AHA i called it in the csc in my mods folder but not the raw folder. thank you!!

 
Loading ...