Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there anyway to trigger a billboard that is connected to a light?
jssjr90 Offline
Member

Posts: 169
Threads: 39
Joined: Jun 2011
Reputation: 0
#3
RE: Is there anyway to trigger a billboard that is connected to a light?

Solved it. Tongue

void OnStart()
{
FadeLightTo("HDR1A_L", 0, 0, 0, 0, -1, 0);
FadeLightTo("HDR1B_L", 0, 0, 0, 0, -1, 0);
AddEntityCollideCallback("Player", "HDR1_Area", "HDR1Switch", false, 0);

}
void HDR1Switch(string &in asParent, string &in asChild, int alState)
{
if ( alState == 1 ) { FadeLightTo("HDR1A_L", 1, 0.862, 0.655, 1, -1, 10); }
if ( alState == 1 ) { FadeLightTo("HDR1B_L", 1, 0.862, 0.655, 1, -1, 10); }

if ( alState == -1 ) { FadeLightTo("HDR1A_L", 0, 0, 0, 0, -1, 10); }
if ( alState == -1 ) { FadeLightTo("HDR1B_L", 0, 0, 0, 0, -1, 10); }
}
(This post was last modified: 09-04-2013, 12:26 AM by jssjr90.)
09-03-2013, 11:59 PM
Find


Messages In This Thread
RE: Is there anyway to trigger a billboard that is connected to a light? - by jssjr90 - 09-03-2013, 11:59 PM



Users browsing this thread: 1 Guest(s)