Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 02 Jan 2014 01:33 PM |
I've heard that if you have multiple loops together one will not work, but what if I had this:
function MainFunction()
function SmallerFunction() while true do --code end end
function SmallerFunction_Two() while true do --code end end
end --End Main function |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
| |
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 02 Jan 2014 01:38 PM |
function SmallerFunction() while true do --code end end
function SmallerFunctionTwo() while true do --code end end
coroutine.resume(coroutine.create(function() SmallerFunction() end)) SmallerFunctionTwo() |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 02 Jan 2014 01:39 PM |
| @Azarth thanks I was thinking coroutine would be helpful. |
|
|
| Report Abuse |
|
|