(07-24-2012, 02:40 PM)zecuro Wrote: its the only thing i know well still some hpl 2 documentation but what are you using ?????
I have seen the videos of "Noob to Pro" by Your Computer and the man used a program (like the notepad++ or notepad) in when you started with a script appeared a few options of the same script, not know if I I explained well
(07-24-2012, 02:39 PM)SilentStriker Wrote: You place a Script area then use AddEntityCollideCallback and if you want to play music it's PlayMusic but if you want to play a sound it's PlaySoundAtEntity
okay, but does not work just try it and it feels. I'll put something in the script to look at me:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "LightsOut", true, 1);
}
void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_floor_1", false, true);
AddTimer("", 0, "Out2");
CreateParticleSystemAtEntity("ParticleSystem_1", "ps_dust_whirl.ps", "LightsOut", false);
PlaySoundAtEntity("", "general_wind_whirl.snt", "LightsOut", 0, false);
}