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
Trigger lamps
Glain Offline
Junior Member

Posts: 5
Threads: 2
Joined: Jul 2011
Reputation: 0
#1
Trigger lamps

Hey Guys i need some help

I want 4 Lights to be lit as soon as you get trough a door.
These an area next to the door which should start the event which turns the lights on + gives you sanity/plays sound.
Heres my code:
{
AddEntityCollideCallback("Player", "TriggerLight", "soundsan", true, 1);
AddEntityCollideCallback("Player", "TriggerLight", "lightson", true, 1);
}

void soundsan(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);  
GiveSanityDamage(5.0f, true);
}
void lightson(string& asName, bool abLit, bool abEffects)
{
SetLampLit("candle_*",true, false);
}
It isn't working for me.
Could someone help me?
(This post was last modified: 07-17-2011, 02:35 AM by Glain.)
07-17-2011, 02:35 AM
Find


Messages In This Thread
Trigger lamps - by Glain - 07-17-2011, 02:35 AM
RE: Trigger lamps - by Zypherzemus - 07-17-2011, 03:24 AM
RE: Trigger lamps - by Glain - 07-17-2011, 03:31 AM
RE: Trigger lamps - by palistov - 07-17-2011, 09:11 AM



Users browsing this thread: 1 Guest(s)