So, I've used the Chair Throw SWEP guide, and I've modified a few things here and there. I'm using RobotBoy's lightsabers, and I wanted to know how I would make it rotate on itself after it's thrown. Been trying around but no luck.
Don't.
[QUOTE=Robotboy655;44695286]Don't.[/QUOTE]
May I know why, exactly? I'm trying to learn how to be a decent coder. Learning by trying and doing stuff.
[QUOTE=Captain Spark;44695353]May I know why, exactly? I'm trying to learn how to be a decent coder. Learning by trying and doing stuff.[/QUOTE]
If you want to get experience, make something of your own, from scratch.
Modifying someone elses work, you can/will be influenced by their coding style, their ways to solve problems, which in some cases might not be the best.
In my mind, for sake of learning, it is always better to copy parts of someone elses code, refactored, into your own, not other way around.
And I really don't want anyone else to do mess with my messy code. :v:
But to answer your question, you will want to use Entity:SetAngles or PhysObj:AddAngleVelocity, where last one is a better idea if your entity has physics.
Thanks for your help, it worked great with PhysObj ^^. And if I may add, I use the ent, because it creates the whole laser from the lightsaber and everything. Makes it much easier
Sorry, you need to Log In to post a reply to this thread.