|
| 27 May 2016 01:39 PM |
function a() end
function b() end
function c() end
math.randomseed(tick()) local p = math.random(3) local command if p==1 then command = a command() elseif p==3 then command = b command() else command = c command()
I understand this would be inefficient, but do the mechanics work? can you use a variable with the same name as a function to call a function? how? |
|
|
| Report Abuse |
|
|
|
| 27 May 2016 01:42 PM |
| I forgot the end, ignore that, I am more worried about the variable function part, is that possible? |
|
|
| Report Abuse |
|
|
| |
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
| |
|