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 Make a light flicker?
TheLastGreyKnight Offline
Junior Member

Posts: 16
Threads: 5
Joined: Jan 2012
Reputation: 0
#3
RE: Make a light flicker?

(03-20-2012, 04:13 AM)Your Computer Wrote: Semicolons are not part of function headers. As for the other issue, (string, bool) is not the syntax for collision callbacks.
I tried "fixing it" to best of my ability's but now I get a new error. "FATAL ERROR: Could not load script file (my custom story) main (22, 21) : ERR : Expected data type.

From what you said I did this to try and fix it.

AddEntityCollideCallback("Player", "LightOff", "LightFlicker_1", true, 1);




void LightFlicker_1("LightOff", false)
{
SetLightFlickerActive("LightOff", false);
}



I feel so needy posting for help, but as I said I've literally been scripting for only about 19 hours now so I'm a complete noob at it ;/
03-20-2012, 06:12 AM
Find


Messages In This Thread
Make a light flicker? - by TheLastGreyKnight - 03-20-2012, 03:56 AM
RE: Make a light flicker? - by Your Computer - 03-20-2012, 04:13 AM
RE: Make a light flicker? - by TheLastGreyKnight - 03-20-2012, 06:12 AM
RE: Make a light flicker? - by DaAinGame - 03-20-2012, 07:07 AM
RE: Make a light flicker? - by Your Computer - 03-20-2012, 07:03 AM
RE: Make a light flicker? - by TheLastGreyKnight - 03-20-2012, 07:11 AM
RE: Make a light flicker? - by Your Computer - 03-20-2012, 07:19 AM



Users browsing this thread: 1 Guest(s)