|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Rotating Weapon Script Needed and more
Author |
Message |
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Fri May 29, 2009 9:43 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Rotating Weapon Script Needed and more
Can't do anything to a weapon while it's held.
|
Sat May 30, 2009 1:14 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Sat May 30, 2009 6:57 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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.
|
Sat May 30, 2009 7:40 pm |
|
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|