Hi
I want to make a secret door like in the "old Archives". But it doesn't work, if i use the lever nothing happens.
LevelEditor 2012-06-02 15-16-22-13.jpg (Size: 329.39 KB / Downloads: 186)
My DoorScript:
void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever_1", "Lever");
}
void Lever(string &in asEntity, int alState)
{
if (alState == 1)
{
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_24", false);
SetMoveObjectState("Secret",1.0f);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_25", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_26", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_27", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_28", false);
PlaySoundAtEntity("", "quest_completed.snt", "ScriptArea_7", 0, false);
}
}