Data Realms Fan Forums
http://45.55.195.193/

Change RateOfFire after a couple of Shots?
http://45.55.195.193/viewtopic.php?f=73&t=45201
Page 1 of 1

Author:  Notsoscary [ Fri Mar 22, 2013 3:09 pm ]
Post subject:  Change RateOfFire after a couple of Shots?

I want to make a weapon which shoots a burst of, lets say, 3 bullets at a rate of 900 RPM, but then it should shoot at 600 RPM if the Actor contiones to shoot. Is it even possible? I mean, the DAKKAGun changes the RPM, so it should be possible.

Author:  Shook [ Sat Mar 23, 2013 3:09 pm ]
Post subject:  Re: Change RateOfFire after a couple of Shots?

Should indeed be possible. I haven't tested this code, but i am reasonably certain that it works (if not, chuck me a PM or something). Here's with comments...
Attachment:
File comment: WITH LOADSA COMMENTS
BURSTY THING.lua [1.18 KiB]
Downloaded 371 times

And without pesky comments:
Attachment:
File comment: WITHOUT LOADSA COMMENTS
BURSTY THING no comments.lua [564 Bytes]
Downloaded 350 times

My take on it, anyways. There's probably a far easier way to do it, but hey, i'm not magical. :U

Author:  Notsoscary [ Sat Mar 23, 2013 4:00 pm ]
Post subject:  Re: Change RateOfFire after a couple of Shots?

Thanks Shook. It worked. Now, how to get that script working...
EDIT: It worked. Thank you, oh dear ANGRY SPACE LAZORS Game Creator and popular Modder of hilarious Mods.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/