Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant have PlaySoundAtEntity with SetSwingDoorClosed?
cook Offline
Member

Posts: 103
Threads: 6
Joined: Apr 2011
Reputation: 0
#15
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed?

void chasesequence2(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "scaretriggerchasesound_1", false);
CreateParticleSystemAtEntity("", "ps_door_damage_wood.ps", "scaretriggerchasesound_1", false);
PlaySoundAtEntity("", "break_wood.snt", "scaretriggerchasesound_1", 0.0f, false);
SetEntityActive("scaredoor3", false);
SetEntityActive("scarestatue13", true);
SetLampLit("scarelantern1", false, true);
PlaySoundAtEntity("scrapesound8", "scrape_rock.ogg", "statuetriggerchase_1", 0.0f, false);
AddTimer("", 1, "stopscrape8");
}

There's one of mine, works. Your problem is you are using the entity interact callback syntax and not the trigger callback syntax, shown in my script.

(string &in asParent, string &in asChild, int alState)
(This post was last modified: 05-05-2011, 12:01 PM by cook.)
05-05-2011, 12:00 PM
Find


Messages In This Thread
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed? - by cook - 05-05-2011, 12:00 PM



Users browsing this thread: 2 Guest(s)