Frictional Games Forum (read-only)
what the script Doorslam but reverse - 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: what the script Doorslam but reverse (/thread-12113.html)

Pages: 1 2


RE: what the script Doorslam but reverse - jessehmusic - 12-27-2011

AddPropImpulse("doorlsam_1", 21.5, 0, -2.75, "");
Cuz X is 21.5 and y 0 and z is -2.75



RE: what the script Doorslam but reverse - flamez3 - 12-27-2011

(12-27-2011, 04:32 PM)jessehmusic Wrote: AddPropImpulse("doorlsam_1", 21.5, 0, -2.75, "");
Cuz X is 21.5 and y 0 and z is -2.75
No, don't put the co-ordinates of the door in. Put the desired force in the the floats.


RE: what the script Doorslam but reverse - jessehmusic - 12-27-2011

the cords of the area then or do i have wrong this is so hard :S


RE: what the script Doorslam but reverse - Linus Ă…gren - 12-27-2011

You're not supposed to use the values from the position of the object. Test with different values to give the door the force you want it to. I tend to use values like 10.0f.