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
Script Help I'm blind to my own errors
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#1
I'm blind to my own errors

Warning: this is probably a "nublette" question, any help at all is much appreciated.

I have several lights (which are connected to billboards) set with a radius of 0 so that the billboards are also off. I want these to "turn on" at a set time, so I used a timer and light value script-thingies (which I don't know the proper name for).

Thought I had it right, but when I loaded the script in game, there was an error: expected '(' for (82,20) (83,20) (84,20) (85,20), which are the "FadeLightTo(string& as_____); lines.

The "AddTimer" is part of a larger script, which is why it's indented. If you need more of this huge script to actually help me, I can add the rest of the script.

My script:
    AddTimer("Ghosts_On", 2.5f, "ghosts_visible");
}

void ghosts_visible(string &in strTimer)
{
    FadeLightTo(string& asPiano, 1.000f, 0.517f, 0.225f, 0.000f, 0.75f, 0.5f);
    FadeLightTo(string& asViolin 0.552f, 0.793f, 1.000f, 0.000f, 0.75f, 1.0f);
    FadeLightTo(string& asCelloI, 1.000f, 0.567f, 0.413f, 0.000f, 0.75f, 1.5f);
    FadeLightTo(string& asCelloII, 1.000f, 0.655f, 0.749f, 0.000f, 0.75f, 2.0f);
}

What I was trying to use:
void FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);

asLightName - internal name
afR - red value
afG - green value
afB - blue value
afA - alpha value
afRadius - radius of the light. -1 means keeping the radius
afTime - time in seconds until change is done

Thanks in advance for the help!

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 03-02-2013, 01:47 AM by CarnivorousJelly.)
03-01-2013, 08:55 PM
Find


Messages In This Thread
I'm blind to my own errors - by CarnivorousJelly - 03-01-2013, 08:55 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:15 PM
RE: Editing Lights - by Rapture - 03-01-2013, 09:20 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:30 PM
RE: Editing Lights - by CarnivorousJelly - 03-01-2013, 11:56 PM



Users browsing this thread: 1 Guest(s)