Data Realms Fan Forums http://45.55.195.193/ |
|
Lua File Request http://45.55.195.193/viewtopic.php?f=73&t=17968 |
Page 1 of 1 |
Author: | Coops [ Sun Feb 28, 2010 6:48 am ] |
Post subject: | Lua File Request |
Hello i am in need of a Lua file that when the desired gun shoots (1 shot), it slows down time for about 30 seconds... i want the time slowed down to about a quarter of the normal speed. Maybe even a Motion Blur if thats possible too.. Thx |
Author: | 411570N3 [ Sun Feb 28, 2010 7:16 am ] |
Post subject: | Re: Lua File Request |
Make an invisible particle that lasts as long as you want the effect to. Give it this script. Code: function Create(self) TimerMan.TimeScale = 1/<Makes time this much slower> function Destroy(Self) TimerMan.TimeScale = 1 Fire it from a gun. |
Author: | Coops [ Sun Feb 28, 2010 7:36 am ] |
Post subject: | Re: Lua File Request |
I have absolutly NO knowledge about Lua... if you could make the introduction into the script and all that, that would be prime... ive already got the MOPixel that has the script, just need a working script thx tho |
Author: | whitty [ Sun Feb 28, 2010 7:37 am ] |
Post subject: | Re: Lua File Request |
That... Is the script. *EDIT* For the exception of an "end". |
Author: | Coops [ Sun Feb 28, 2010 7:39 am ] |
Post subject: | Re: Lua File Request |
any tabs included? |
Author: | whitty [ Sun Feb 28, 2010 7:48 am ] |
Post subject: | Re: Lua File Request |
Tabs just make it look pretty. You can make it look like this just for the sake of organization: Code: function Create(self) [tab]TimerMan.TimeScale = 1/<Makes time this much slower> [tab]function Destroy(Self) [tab]TimerMan.TimeScale = 1 end Replace [tab] with an actual tab. |
Author: | CrazyMLC [ Sun Feb 28, 2010 8:03 am ] |
Post subject: | Re: Lua File Request |
Missing an end. Code: function Create(self) TimerMan.TimeScale = 0.5 --(Half the speed of normal, set it to whatever you want.) end function Destroy(Self) TimerMan.TimeScale = 1 end (scripts don't need tabs or spaces, it just helps everything make sense when you're making the code.) |
Author: | Coops [ Sun Feb 28, 2010 8:07 am ] |
Post subject: | Re: Lua File Request |
PERFECT!!!! thx guys.. be releasing something small but hopefully epic soon EDIT: just remembered something thats important... in any way can you keep the fire sound not be effected by the timescale? And please Any kind of motion blur and this would be a fantastic mod |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |