Sauron The King
Junior Member
Posts: 42
Threads: 10
Joined: Oct 2011
Reputation:
0
|
Removing entities
Hello,
I'm making a custom story in which you have to set a painting on fire with a candle and tinderboxes. I've made the following script:
The painting will get on fire as soon as I lit the candle. But the fire won't go out at all, nor will the painting go away. I've used "SetEntityActive" with "false" as bool. The fire will appear, but nothing will disappear at all. What is wrong?
//////////////////////////////////////////////////
// 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_Verbrand_1", 0.3, "Schilderij_Verbrand_1");
}
void Schilderij_Verbrand_1(string &in asTimer)
{
SetEntityActive("13_burner_2", true);
SetEntityActive("13_burner_3", true);
AddTimer("Schilderij_Verbrand_2", 0.15, "Schilderij_Verbrand_2");
}
void Schilderij_Verbrand_2(string &in asTimer)
{
SetEntityActive("13_burner_4", true);
SetEntityActive("13_burner_5", true);
AddTimer("Schilderij_Verbrand_3", 0.15, "Schilderij_Verbrand_3");
}
void Schilderij_Verbrand_3(string &in asTimer)
{
SetEntityActive("13_burner_6", true);
SetEntityActive("13_burner_7", true);
AddTimer("Schilderij_Verbrand_4", 0.15, "Schilderij_Verbrand_4");
}
void Schilderij_Verbrand_4(string &in asTimer)
{
SetEntityActive("13_burner_8", true);
SetEntityActive("13_burner_9", true);
AddTimer("Schilderij_Verbrand_5", 0.15, "Schilderij_Verbrand_5");
}
void Schilderij_Verbrand_5(string &in asTimer)
{
SetEntityActive("13_burner_10", true);
SetEntityActive("13_burner_11", true);
AddTimer("Schilderij_Verbrand_6", 0.15, "Schilderij_Verbrand_6");
}
void Schilderij_Verbrand_6(string &in asTimer)
{
SetEntityActive("13_burner_12", true);
SetEntityActive("13_burner_13", true);
AddTimer("Schilderij_Verbrand_7", 0.15, "Schilderij_Verbrand_7");
}
void Schilderij_Verbrand_7(string &in asTimer)
{
SetEntityActive("13_burner_14", true);
SetEntityActive("13_burner_15", true);
AddTimer("Schilderij_Verbrand_8", 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_weg");
}
void Schilderij_weg(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_weg14and15(string &in asTimer)
{
SetEntityActive("13_burner_14", false);
SetEntityActive("13_burner_15", false);
AddTimer("vuur_weg12and13", 0.15, "vuur_weg_12and13");
}
void vuur_weg12and13(string &in asTimer)
{
SetEntityActive("13_burner_12", false);
SetEntityActive("13_burner_13", false);
AddTimer("vuur_weg10and11", 0.15, "vuur_weg_10and11");
}
void vuur_weg10and11(string &in asTimer)
{
SetEntityActive("13_burner_10", false);
SetEntityActive("13_burner_11", false);
AddTimer("vuur_weg8and9", 0.15, "vuur_weg_8and9");
}
void vuur_weg8and9(string &in asTimer)
{
SetEntityActive("13_burner_8", false);
SetEntityActive("13_burner_9", false);
AddTimer("vuur_weg6and7", 0.15, "vuur_weg_6and7");
}
void vuur_weg6and7(string &in asTimer)
{
SetEntityActive("13_burner_6", false);
SetEntityActive("13_burner_7", false);
AddTimer("vuur_weg4and5", 0.15, "vuur_weg_4and5");
}
void vuur_weg4and5(string &in asTimer)
{
SetEntityActive("13_burner_4", false);
SetEntityActive("13_burner_5", false);
AddTimer("vuur_weg2and3", 0.15, "vuur_weg_2and3");
}
void vuur_weg2and3(string &in asTimer)
{
SetEntityActive("13_burner_2", false);
SetEntityActive("13_burner_3", false);
}
|
|