Frictional Games Forum (read-only)
Set wall passive - 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: Set wall passive (/thread-9547.html)



Set wall passive - mr.bonent - 08-01-2011

Can anyone tell me why this does not work? (the SetPassive, "wand_2")

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "BuchErscheinung", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "WandErscheinung", true, 1);
AddEntityCollideCallback("Player", "DoorClosedArea_1", "DoorClosedAndLook", true, 1);
AddUseItemCallback("", "DoorKey_1", "mansion_4", "UsedKeyOnDoor", true);

}
void BuchErscheinung(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("buch", true);
AddDebugMessage("buch", false);
}
void WandErscheinung(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("wand", true);
SetEntityPassive("wand_2", true);
AddDebugMessage("wand", false);
AddDebugMessage("wand_2", false);



RE: Set wall passive - Your Computer - 08-02-2011

Where did you hear about SetEntityPassive()? It's not found here.


RE: Set wall passive - Rapture - 08-02-2011

SetEntityPassive ?? I don't think thats a valid script function wiki.frictional scripts and your missing a "}" at the very end.


RE: Set wall passive - mr.bonent - 08-02-2011

Ohr sorry, I thought this function exists.
How can I do it else? That a wall becomes activated when the player enters the scriptarea?


RE: Set wall passive - Roenlond - 08-02-2011

SetEntityActive("wand_2", false);

will set the entity to inactive.


RE: Set wall passive - Janni1234 - 08-02-2011

SetEntityPassive....never heard about that, too.


RE: Set wall passive - mr.bonent - 08-02-2011

Thanks very much everybody.Smile