Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
RE: Removing entities
I think I see it... from where you start setting entities INACTIVE, you have the functions titled as the TIMER NAMES, NOT the callback the timer calls for. I fixed it up a bit. Let me know how it turned out. (just copy and replace the whole thing):
//___________________________________
//////////////////////////////////////////////////
// Slaapkamer Geheime doorgang
void OnStart()
{
SetEntityCallbackFunc("candlestick01_1", "painting03_1_Burns");
}
///////////////////////////////////////////////////
///The Oratory
void painting03_1_Burns(string &in asEntity, string &in type)
{
AddTimer("Schilderij_Verbrand1", 0.3, "Schilderij_Verbrand_1");
}
void Schilderij_Verbrand_1(string &in asTimer)
{
SetEntityActive("13_burner_2", true);
SetEntityActive("13_burner_3", true);
AddTimer("Schilderij_Verbrand2", 0.15, "Schilderij_Verbrand_2");
}
void Schilderij_Verbrand_2(string &in asTimer)
{
SetEntityActive("13_burner_4", true);
SetEntityActive("13_burner_5", true);
AddTimer("Schilderij_Verbrand3", 0.15, "Schilderij_Verbrand_3");
}
void Schilderij_Verbrand_3(string &in asTimer)
{
SetEntityActive("13_burner_6", true);
SetEntityActive("13_burner_7", true);
AddTimer("Schilderij_Verbrand4", 0.15, "Schilderij_Verbrand_4");
}
void Schilderij_Verbrand_4(string &in asTimer)
{
SetEntityActive("13_burner_8", true);
SetEntityActive("13_burner_9", true);
AddTimer("Schilderij_Verbrand5", 0.15, "Schilderij_Verbrand_5");
}
void Schilderij_Verbrand_5(string &in asTimer)
{
SetEntityActive("13_burner_10", true);
SetEntityActive("13_burner_11", true);
AddTimer("Schilderij_Verbrand6", 0.15, "Schilderij_Verbrand_6");
}
void Schilderij_Verbrand_6(string &in asTimer)
{
SetEntityActive("13_burner_12", true);
SetEntityActive("13_burner_13", true);
AddTimer("Schilderij_Verbrand7", 0.15, "Schilderij_Verbrand_7");
}
void Schilderij_Verbrand_7(string &in asTimer)
{
SetEntityActive("13_burner_14", true);
SetEntityActive("13_burner_15", true);
AddTimer("Schilderij_Verbrand8", 0.15, "Schilderij_Verbrand_8");
}
void Schilderij_Verbrand_8(string &in asTimer)
{
SetEntityActive("13_burner_16", true);
SetEntityActive("13_burner_17", true);
AddTimer("Schilderij_weg", 0.5, "Schilderij_wegCall");
}
void Schilderij_wegCall(string &in asTimer)
{
SetEntityActive("Compound_10", false);
AddTimer("vuur_weg16and17", 0.15, "vuur_weg_16and17");
}
void vuur_weg_16and17(string &in asTimer)
{
SetEntityActive("13_burner_16", false);
SetEntityActive("13_burner_17", false);
AddTimer("vuur_weg14and15", 0.15, "vuur_weg_14and15");
}
void vuur_weg_14and15(string &in asTimer)
{
SetEntityActive("13_burner_14", false);
SetEntityActive("13_burner_15", false);
AddTimer("vuur_weg12and13", 0.15, "vuur_weg_12and13");
}
void vuur_weg_12and13(string &in asTimer)
{
SetEntityActive("13_burner_12", false);
SetEntityActive("13_burner_13", false);
AddTimer("vuur_weg10and11", 0.15, "vuur_weg_10and11");
}
void vuur_weg_10and11(string &in asTimer)
{
SetEntityActive("13_burner_10", false);
SetEntityActive("13_burner_11", false);
AddTimer("vuur_weg8and9", 0.15, "vuur_weg_8and9");
}
void vuur_weg_8and9(string &in asTimer)
{
SetEntityActive("13_burner_8", false);
SetEntityActive("13_burner_9", false);
AddTimer("vuur_weg6and7", 0.15, "vuur_weg_6and7");
}
void vuur_weg_6and7(string &in asTimer)
{
SetEntityActive("13_burner_6", false);
SetEntityActive("13_burner_7", false);
AddTimer("vuur_weg4and5", 0.15, "vuur_weg_4and5");
}
void vuur_weg_4and5(string &in asTimer)
{
SetEntityActive("13_burner_4", false);
SetEntityActive("13_burner_5", false);
AddTimer("vuur_weg2and3", 0.15, "vuur_weg_2and3");
}
void vuur_weg_2and3(string &in asTimer)
{
SetEntityActive("13_burner_2", false);
SetEntityActive("13_burner_3", false);
}
//_________________________
(This post was last modified: 11-09-2011, 10:34 PM by Statyk.)
|
|