[SCRIPT] Triggers not resetting - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Triggers not resetting (/thread-14623.html) |
Triggers not resetting - JetlinerX - 04-08-2012 I KNOW there is a similar topic below, but I dont want to hijack his since he is still getting help. Whats wrong with my script, that is making the areas not reactivate? My Checkpoint CheckPoint ("Check1", "BridgeDeathRespawn", "BridgeDeath", "DeathHints", "StayLow"); My Function: void BridgeDeath(string &in asName, int alCount) { SetEntityActive("SprintDisable", true); SetEntityActive("SprintEnable", true); SetEntityActive("StandKill", true); } RE: Triggers not resetting - Apjjm - 04-08-2012 Going to need more information. Can you post up the full script? RE: Triggers not resetting - JetlinerX - 04-08-2012 Sure thing! Code: void OnEnter () RE: Triggers not resetting - Apjjm - 04-08-2012 It appears you are deleting your callbacks on collision instead of de-activating the areas - so you will need to re-add them. Your checkpoint function should look as follows: Code: void BridgeDeath(string &in asName, int alCount) Also note that adding your callbacks in OnEnter will mean they are added every time the map is entered. OnStart is usually a better place for adding the initial callbacks. Edit: Forum formatting RE: Triggers not resetting - JetlinerX - 04-08-2012 Opp, silly me. I knew areas dont get deleted, they just have to be recalled. DERRPPP. Sorry to waste your time. + rep. |