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

Scripting lights

broken avatar :(
Created 8 years ago
by killer2r2
0 Members and 1 Guest are viewing this topic.
1,599 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 10 August 2013
Last active: 4 years ago
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
Personal Text
×
killer2r2's Groups
killer2r2's Contact & Social Links
Pretty simple, I would like to to turn a few lights on and off by pressing 2 triggers.

I've tried servral thing but nothing seems to work.

Thanks for helping.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 February 2014
Last active: 1 year ago
Posts
69
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
What is broken can be reforged
Signature
Completed maps:
Kingdom Hearts - World at War Link
Minecraft - Black ops 3 Link

WIP:
~

×
shinged's Groups
shinged's Contact & Social LinksShingedvinny545TheShingedMatarra_
You can probably create a light fx and spawn it via script. Maybe something like Playfxontag on a spawned script model. I haven't tried this yet but i know some stock fx have lights in them. Then you can delete the spawned script model to delete the fx
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Also if you aren't using power for turning on lights already you could just use that method and instead change the lighting state when the triggers are activated.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 10 August 2013
Last active: 4 years ago
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
Personal Text
×
killer2r2's Groups
killer2r2's Contact & Social Links
Also if you aren't using power for turning on lights already you could just use that method and instead change the lighting state when the triggers are activated.
yea, I'm searching for something without chainging the lightning state.

Quote
You can probably create a light fx and spawn it via script. Maybe something like Playfxontag on a spawned script model. I haven't tried this yet but i know some stock fx have lights in them. Then you can delete the spawned script model to delete the fx

I'm gonna try this. If anybody happen to know how to write a script for lights, I'll be glad if you comment and help.

 
Loading ...