The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Is there anyway to trigger a billboard that is connected to a light?

Is there anyway to trigger a billboard that is connected to a light?
I am using a billboard for a bloom effect, and I do see that you can connect these to lights. But whenever I do connect them to a point
light or spot light, the billboard does not do its command.

This is what im trying to do.

1. The billboard would be triggering off the from the start.
2. When you enter an area trigger, the billboard fades in.
3. When you get out of the trigger, the billboard fades out. (fading to turn off)

So this is my script so far, it should work but refuses too.

void OnStart()
{
SetEntityActive("HDR1A_L", false);
SetEntityActive("HDR1B_L", false);
AddEntityCollideCallback("Player", "HDR1", "HDR1Active", false, 1);
AddEntityCollideCallback("Player", "HDR1", "HDR1NonActive", false, -1);
}
void HDR1Active(string &in asParent, string &in asChild, int alState)
{
FadeLightTo("HDR1A_L", 1, 0.862, 0.655, 1, 1, 10);
}
void HDR1NonActive(string &in asParent, string &in asChild, int alState)
{
FadeLightTo("HDR1B_L", 0, 0, 0, 0, 0, 10);
}

Demonstration (Script is not in the video)

http://www.youtube.com/watch?v=QNsZXdE1E_I

So can anyone help please? Smile
(This post was last modified: 09-04-2013, 12:27 AM by jssjr90.)
09-03-2013, 09:33 PM
Find


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



Users browsing this thread: 1 Guest(s)