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
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#2
RE: Enabling Point Light when enter script area

{
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 "

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 02-02-2012, 11:36 AM by Tripication.)
02-02-2012, 11:27 AM
Find


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



Users browsing this thread: 1 Guest(s)