Frictional Games Forum (read-only)
Scripting, need urgent help! - 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: Scripting, need urgent help! (/thread-9259.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: Scripting, need urgent help! - JetlinerX - 08-17-2011

Anyone know what script makes a door crumble? I cant find it on Script Functions.


RE: Scripting, need urgent help! - darkside - 08-20-2011

ummmm ... by crumble, you mean it gets destroyed?


RE: Scripting, need urgent help! - Kyle - 08-20-2011

AddPropHealth("DoorName", -50);

DoorName = The door you want to get destroyed.

-50 = The amount of damage out of 100 the door will have inflicted on it.


When the door has lost 100 health, then the door will be completely broken.


RE: Scripting, need urgent help! - JetlinerX - 08-20-2011

Thanks much Kyle, does it come with a breaking sound, or should I PlaySoundAtEntity? Big Grin