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
Problem deactivating entity
DoReMiFaSoLaTi Offline
Junior Member

Posts: 2
Threads: 1
Joined: Dec 2013
Reputation: 0
#1
Problem deactivating entity

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
12-27-2013, 12:02 AM
Find


Messages In This Thread
Problem deactivating entity - by DoReMiFaSoLaTi - 12-27-2013, 12:02 AM
RE: Problem deactivating entity - by daortir - 12-27-2013, 12:06 AM
RE: Problem deactivating entity - by daortir - 12-27-2013, 12:30 AM
RE: Problem deactivating entity - by WALP - 12-27-2013, 02:39 AM
RE: Problem deactivating entity - by daortir - 12-27-2013, 01:02 PM
RE: Problem deactivating entity - by WALP - 12-27-2013, 02:25 PM
RE: Problem deactivating entity - by Acies - 12-27-2013, 03:34 PM
RE: Problem deactivating entity - by Damascus - 12-29-2013, 12:47 AM
RE: Problem deactivating entity - by Traggey - 12-28-2013, 10:19 PM



Users browsing this thread: 1 Guest(s)