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.)
|