Data Realms Fan Forums http://45.55.195.193/ |
|
Rotating Weapon Script Needed and more http://45.55.195.193/viewtopic.php?f=73&t=15058 |
Page 1 of 1 |
Author: | CaveCricket48 [ Fri May 29, 2009 9:43 pm ] |
Post subject: | Rotating Weapon Script Needed and more |
For the first one, I need a script that rotates a weapon when you fire, returns to its original postion when fire is released, and can be attached (the script) to a weapon. The next script I would like would be attached to a weapon and would change the user's gravity to the direction the user fires the gun. Reloading, dropping, or destroying the gun would reset the user's gravity. |
Author: | Grif [ Sat May 30, 2009 1:14 am ] |
Post subject: | Re: Rotating Weapon Script Needed and more |
Can't do anything to a weapon while it's held. |
Author: | CaveCricket48 [ Sat May 30, 2009 6:57 pm ] |
Post subject: | Re: Rotating Weapon Script Needed and more |
I don't mean having the weapon instantly rotate with Rotation = Matrix and added with Lua, I want instead of shooting a particle, the actor who is using the weapon will quickly look down when fire is pressed and look back at its original postion. This will make a melee weapon. |
Author: | Grif [ Sat May 30, 2009 7:40 pm ] |
Post subject: | Re: Rotating Weapon Script Needed and more |
Then you can't attach that to a weapon. You could have the particle the weapon fires do it, but not the weapon itself. Basically you'd be using SetAimAngle twice in rapid sucession. Though that would be an instant set; it'd be better to be setting it constantly to a decent increase. And also, naturally, determining the parent on weapon fire, though you might run into issues with this if it's a melee weapon. The same problem with weapons vs particles applies to your second script, and that'd probably just require some moderate trigonometry. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |