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 Enabling Point Light when enter script area
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#3
RE: Enabling Point Light when enter script area

(02-02-2012, 11:27 AM)Tripication Wrote: {
SetLightVisible("firescarelight, false);
AddEntityCollideCallback("Player", "fireplacescare", "scare_fire", true, 1);
}

void scare_fire(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("firescare", true);
SetEntityActive("firebody", true);
SetLightVisible("firescarelight, true);
PlaySoundAtEntity("", "scare_wall_stomp.snt", "Player", 0, false);
GiveSanityDamage(10.0f, false);
}




Its a bool, bool is true/false
If that doesn't work then i dunno, im having a rest after finishing outskirts
oh, also
void OnStart
{
SetLightVisible("firescarelight", false);
AddEntityCollideCallback("Player", "fireplacescare", "scare_fire", true, 1);
}

void scare_fire(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("firescare", true);
SetEntityActive("firebody", true);
SetLightVisible("firescarelight", true);
PlaySoundAtEntity("", "scare_wall_stomp.snt", "Player", 0, false);
GiveSanityDamage(10.0f, false);
}



need these "
Thanks And I'm Downloading Your Custom Story Now It Looks GoodBig Grin


This Darn House! , Four Doors, Youtube
02-02-2012, 11:38 AM
Find


Messages In This Thread
RE: Enabling Point Light when enter script area - by heyitsrobert97 - 02-02-2012, 11:38 AM



Users browsing this thread: 1 Guest(s)