Frictional Games Forum (read-only)
prop force - 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: prop force (/thread-8744.html)

Pages: 1 2 3


RE: prop force - Roenlond - 06-24-2011

Press f1 (You need a dev environment) and check Show Debug Messages. Look at the lower left corner when you enter the area that calls the function and check if you see the message "Grunt should now move".


RE: prop force - xtron - 06-24-2011

how to get that dev enviroment? O_O


RE: prop force - Roenlond - 06-24-2011

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



RE: prop force - xtron - 06-24-2011

When I start amnesia I get " Could not load world file 'maps/main/nms2.map' "
hmm...I got it working...I guess the entity can't be moved.

or

It's pretty heavy, the player can't lift him up but he can move him. Is there a way to add some more force?. not moving distance but force.


RE: prop force - rojkish - 06-24-2011

Try using AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem); instead, it'll probably work better.


RE: prop force - Roenlond - 06-24-2011

Are you using the grunt ragdoll? I'm not sure if the original monster can be moved.


RE: prop force - xtron - 06-24-2011

(06-24-2011, 04:12 PM)Roenlond Wrote: Are you using the grunt ragdoll? I'm not sure if the original monster can be moved.

Yea it's the grunt ragdoll :/
Oh the AddPropImpulse works ^^. But...now he comes gliding on the floor. I want him up in the air.

Code:
AddPropImpulse("grunt_ragdoll_1", -20.0f, 1.50f, 0.0f, "world");

I tried 1.50f but no difference ingame. Any ideas on how to make him fly through the air?


RE: prop force - Roenlond - 06-24-2011

You need a high enough force, 1.5 is not enough I believe. Or maybe you need it reversed, i.e -1.5f, or the Z axis. Try it.


RE: prop force - xtron - 06-24-2011

okay it works but now he's ass is flying towards the camera xD.

Thansk ^^. Ill just rotate him and it'll be fine.


RE: prop force - Streetboat - 06-24-2011

With propforce, you generally need to use really big numbers to make it have any effect- otherwise, the innate forces of the in-game gravity will just make it stay there. I generally have to use numbers in the thousands if I want to do something as simple as slowly push open a door.