Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
prop force
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#11
RE: prop force

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".
06-24-2011, 02:20 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#12
RE: prop force

how to get that dev enviroment? O_O

[Image: 44917299.jpg]Dubstep <3
06-24-2011, 02:41 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#13
RE: prop force

http://wiki.frictionalgames.com/hpl2/amn...evenvguide
06-24-2011, 02:44 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#14
RE: prop force

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.

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-24-2011, 03:01 PM by xtron.)
06-24-2011, 02:58 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#15
RE: prop force

Try using AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem); instead, it'll probably work better.
06-24-2011, 03:48 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#16
RE: prop force

Are you using the grunt ragdoll? I'm not sure if the original monster can be moved.
06-24-2011, 04:12 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#17
RE: prop force

(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.

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?

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-24-2011, 04:43 PM by xtron.)
06-24-2011, 04:31 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#18
RE: prop force

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.
06-24-2011, 06:03 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#19
RE: prop force

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

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

[Image: 44917299.jpg]Dubstep <3
06-24-2011, 06:17 PM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#20
RE: prop force

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.

[Image: signature-2.png]
06-24-2011, 06:59 PM
Find




Users browsing this thread: 2 Guest(s)