Frictional Games Forum (read-only)
scripting 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 help (/thread-8802.html)



scripting help - stormhound - 06-26-2011

Hi I made a choice to call myself noob till I get good with the forums scripting and how to make good maps. Anyway,I was wondering how do you make thing fall over and make books fall off bookshelves and stuff. I saw a script line saying float but I cant remember it off the top of my head, there is a page that shows you all of the script and what it does so if you could send me that link too that would be helpful.

by noob.Heart
_________________________________________________________
custom story in progress grunt of brennenburg.


RE: scripting help - JenniferOrange - 06-26-2011

Well I can't help you on that cause I'm not familiar with floating objects..
But here's the Frictional Games Scripting Functions. Make sure to bookmark this page, now. Wink

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

EDIT---
I was looking around a bit, I found this page:

void AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

Pushes objects. Note that rather high values are needed when applying forces.

asName - the object to push
afX - direction along the X-axis
afY - direction along the Y-axis
afZ - direction along the Z-axis
asCoordSystem - determines which coordinate system is used, usually “world”

I found it under Props, in the table of contents. Big Grin




RE: scripting help - stormhound - 06-26-2011

Thank you Jenniferorange I have seen some of your questions before thanks for the help. I shall help you when you need help as long as you help me.Big Grin