Frictional Games Forum (read-only)
moving objects - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: moving objects (/thread-8474.html)



moving objects - xtron - 06-06-2011

I have been trying to figgure out the script for moving objects and then i tried this code:

Code:
void func_move_box1(string &in asParent, string &in asChild, int alState)
{
float mult = 1500.0f;
AddPropForce("box1", mult * -11.553, 0, mult *12.272, false);
}

But it doesn't work :S...any ideas?


RE: moving objects - Tanshaydar - 06-06-2011

false);
"World");


RE: moving objects - ferryadams10 - 06-06-2011

Haha
Just read the script site Big Grin
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
You know it will help you.
If you would have checked the site than you will avoid this mistakes. And if u made one than it is a reading mistake.


RE: moving objects - xtron - 06-06-2011

Oh right XD. I have no ide why I wrote "false"...
now it sais "'world' is not declared"


RE: moving objects - MrBigzy - 06-06-2011

Make sure it's "world", with quotation marks around it.