Frictional Games Forum (read-only)

Full Version: moving objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
false);
"World");
Haha
Just read the script site Big Grin
http://wiki.frictionalgames.com/hpl2/amn..._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.
Oh right XD. I have no ide why I wrote "false"...
now it sais "'world' is not declared"
Make sure it's "world", with quotation marks around it.