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
Making entities swing back and forth.
Promethium Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2011
Reputation: 0
#1
Making entities swing back and forth.

Hey, so what I want is for my lamp type "hanging_lantern_wall" to rock back and forth, like wind is pushing it, or that something has pushed it and it sways. Is there a way to do this? I remember being in the storage in the main game and there was a rope swinging. Help much appreciated, thanks ^-^
09-18-2011, 10:24 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Making entities swing back and forth.

AddPropForce() should do the trick.

Tutorials: From Noob to Pro
09-18-2011, 11:13 AM
Website Find
Promethium Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2011
Reputation: 0
#3
RE: Making entities swing back and forth.

(09-18-2011, 11:13 AM)Your Computer Wrote: AddPropForce() should do the trick.
Thankyou Big Grin but that will only push it once, is there a way to repeat it? Because my lanterns just swinging then stopping
09-18-2011, 08:09 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Making entities swing back and forth.

(09-18-2011, 08:09 PM)Promethium Wrote: Thankyou Big Grin but that will only push it once, is there a way to repeat it? Because my lanterns just swinging then stopping

Make sure the entity has gravity enabled. It may also have to do with the type of joint the entity has. In either case, you may need to modify the entity in the model editor.

Tutorials: From Noob to Pro
09-18-2011, 08:15 PM
Website Find
Promethium Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2011
Reputation: 0
#5
RE: Making entities swing back and forth.

(09-18-2011, 08:15 PM)Your Computer Wrote:
(09-18-2011, 08:09 PM)Promethium Wrote: Thankyou Big Grin but that will only push it once, is there a way to repeat it? Because my lanterns just swinging then stopping

Make sure the entity has gravity enabled. It may also have to do with the type of joint the entity has. In either case, you may need to modify the entity in the model editor.
Ahhh, will try it out now =) thanks for the help and your time ^-^
09-18-2011, 08:17 PM
Find




Users browsing this thread: 3 Guest(s)