I'm working on a custom story and I've spawned the entity "Deformed Man" (Statue). The name of the entity is deformed_man_1, in my .hps-file I've deactivated this entity at the beginning:
void OnStart()
{
//Player Enviroment//
FadeOut(0);
AddTimer("", 1, "StartTheGame");
SetLightVisible("PointLight_2", false);
//Music//
PlaySoundAtEntity("", "general_rain.ogg", "Player", 3, true);
PlaySoundAtEntity("", "general_thunder.ogg", "Player", 3, true);
//Collides//
AddEntityCollideCallback("armour_rusty_head_1", "ScriptArea_1", "LevelDoorIs", true, 1);
//Interactions//
SetEntityPlayerInteractCallback("armour_rusty_head_1", "ShowStatue", true);
//Enteties//
SetEntityActive("level_wood_1", false);
SetEntityActive("deformed_man_1", false);
}
(This is only the OnStart() part of the code)
The problem is: the entity is still active when I start the map (which it should not be). I've also tried deactivating it from the Level Editor, this didn't work either. (I've looked for map cache-files, but they are removed)
Please help me