The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing entities
Sauron The King Offline
Junior Member

Posts: 42
Threads: 10
Joined: Oct 2011
Reputation: 0
#1
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);
}
11-09-2011, 10:15 PM
Find


Messages In This Thread
Removing entities - by Sauron The King - 11-09-2011, 10:15 PM
RE: Removing entities - by Statyk - 11-09-2011, 10:31 PM
RE: Removing entities - by Sauron The King - 11-10-2011, 07:28 PM
RE: Removing entities - by Unearthlybrutal - 11-10-2011, 07:36 PM
RE: Removing entities - by Sauron The King - 11-10-2011, 08:18 PM
RE: Removing entities - by darkside - 11-10-2011, 08:26 PM
RE: Removing entities - by Statyk - 11-10-2011, 08:31 PM
RE: Removing entities - by Sauron The King - 11-11-2011, 01:34 PM



Users browsing this thread: 1 Guest(s)