Frictional Games Forum (read-only)
[SCRIPT] Make mansion door+doorway+doorframe dissapear into smoke particles? - 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] Make mansion door+doorway+doorframe dissapear into smoke particles? (/thread-29600.html)



Make mansion door+doorway+doorframe dissapear into smoke particles? - LDOriginal - 02-09-2015

Is this possible? Like entering a scriptarea making a mansion door+doorway+dooframe dissapear into smoke particles, just leaving a wall after it? (the wall that's connected to each sides of the doorway?) I have no idea how to execute this in the script. Any ideas? Smile


RE: Make mansion door+doorway+doorframe dissapear into smoke particles? - Daemian - 02-10-2015

I would turn those models into an entity and try that fade function:
Code:
SetPropActiveAndFade(string& asName, bool abActive, float afFadeTime);

e.g.
Turn mansion_door.dae into mansion_door.ent (with model editor)
Then via script I go: SetPropActiveAndFade ( "door1", false, 4 );


RE: Make mansion door+doorway+doorframe dissapear into smoke particles? - FlawlessHappiness - 02-10-2015

Perhaps this is helpful.

https://www.dropbox.com/s/arim227pv376c36/mansion%20wall%20entities.rar?dl=0

Place it in your custom story's entities folder.
Then load the entities you want in the level editor.

Some of the files are unnecessary, but I've not had time to test which are and which aren't. Perhaps other people can tell and upload a better version.