+- 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] Collapse (/thread-11016.html)
I am new to scripting and I wanted to make a hallway in which a part collapses.
When you enter the Zone "Collapse_Sleepingrooms", the entity "cave_in_1" will become active, a sound of crushing stones will sound ("04_rock_break.snt") and smoke will come out of the hallway.
// True never made so "True" you must make it so SetEntityActive("cave_in_1", true);
//SetEntityActive(string& asName, bool abActive); bool abActive = True or False it dont need to declaration
If I left "void Collidewhencollapse(string &in asParent, string &in asChild, int alState)" away, the Entity (The fallen rocks) will be there right away. So I thought that I would make the rocks appear after I entered the area by adding that sentence.
If I play my map now, I will get the following error:
"FATAL ERROR: Could not load script file 'mymaps/The_Haunted_Castle_of_Algium.hps'!
main (26,2): ERR : No matching signatures to 'SetEntityActive(string@&, string @&)'
I want the rocks to appear after I entered the area. When they appear, there must be a sound of collapsing stones.
Thanks for helping me before, but could you help me further with this?
If I left "void Collidewhencollapse(string &in asParent, string &in asChild, int alState)" away, the Entity (The fallen rocks) will be there right away. So I thought that I would make the rocks appear after I entered the area by adding that sentence.
If I play my map now, I will get the following error:
"FATAL ERROR: Could not load script file 'mymaps/The_Haunted_Castle_of_Algium.hps'!
main (26,2): ERR : No matching signatures to 'SetEntityActive(string@&, string @&)'
I want the rocks to appear after I entered the area. When they appear, there must be a sound of collapsing stones.
Thanks for helping me before, but could you help me further with this?
This happened because you have put "" around a bool. Bools do not need "" around them. change "true" to true