Entity problem Created 15 years ago2009-03-31 09:03:37 UTC by fold fold

Created 15 years ago2009-03-31 09:03:37 UTC by fold fold

Posted 15 years ago2009-03-31 09:20:49 UTC Post #264804
Ok, heres the deal:

I'm trying to make an object move from one side to another with a 15? angle. Lets say it should work like a swing. Currently I can make it (func_door_rotating) go only one way to the 15? and back to zero but how could I make it go another 15? to the other side so that it could be loopable.

This would be added to a SP version of the tall ship I'm working on. Will do two different version of the ship, one that is for gameplay and one that will look as realistic, detailed to the maximum.

Another problem I encountered with my test map is that the models wont move with the door, nor do the model entities have a movewith possibility. This is only from DoD though so would Spirit have an option to move the model with the door ?
Posted 15 years ago2009-03-31 10:57:16 UTC Post #264808
They have func_pendulums for that exact purpose!
As for spirit, idk unfortunatley.
Never used it.
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2009-03-31 12:02:27 UTC Post #264809
Now why didn't I think of that ... :quizzical: Totaly forgot that entity.

Now the hard part is to make it act like I want it to ... no luck thus far, it sort of starts to swing from the corner of the ship and not from the middle :\
User posted image
User posted image
Now if I could somehow set the center to the helm so that it would swing both sides while the helm itself would stay still... any tips ?
Posted 15 years ago2009-03-31 12:55:04 UTC Post #264814
it would help if i knew what the helm was.
Did you mess around with the origin placement at all?
Oh yeah. I forgot.
you have to offset the entity by the number of degrees you want it to swing.
Say if you want a 15 degree swing from the middle,
rotate the entity 15 degrees and set the angle to 30 degrees.
So it'll start at one extreme, swing through the middle, go to the other extreme, and then back again.
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2009-03-31 13:13:11 UTC Post #264817
Got it right now. I had the origin placed in the wrong location. Now its working as intended. Thanks :)
Posted 15 years ago2009-03-31 14:23:57 UTC Post #264818
You're welcome.
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.