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

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

What script would one use to make a light flicker? I'm brand new to scripting and have been trying to get a light to flicker for like an hour now Sad I'm pretty sure I'm using the wrong script but I dun know, any help?




void OnEnter()
{
AddEntityCollideCallback("Player", "Scare1", "FirstScare", true, 1);
AddEntityCollideCallback("Player", "Scare2", "SecondScare", true, 1);
AddEntityCollideCallback("Player", "LightOff", "LightFlicker_1", true, 1);
}
// sounds
void FirstScare(string &in asParent, string &in asChild, int alState)
{
if(alState == 1)
{
PlayMusic("05_event_steps.ogg", false, 1.00, 0, 0, true);
}
}
void SecondScare(string &in asParent, string &in asChild, int alState)
{
if (alState == 1)
{
PlayMusic("15_event_prisoner.ogg", false, 1.00, 0, 0, true);
}
}
void LightFlicker_1(string& asLightName, bool abActive);
{
SetLightFlickerActive("LightOff", false);
}






everytime I try to start my CS I get "FATAL ERROR: Could not load script file 'custom_stories/Coma-Backup/maps/00_starting.hps'! main (23, 4) :ERR :Unexpected Token '{'

Any help?
03-20-2012, 03:56 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)