I am trying to make it so that each round you are in at the end of each round everyone dies from one explosion. I have a Function called InRound that determines if we are in a round. How would I make it so that when one function ends it calls the other function (explosion) to execute?
COMMUNITY QUESTION
How do I call a function when another function is executed?
1 answer
You can just call the second function at the end of the first one. Like this
function InRound()
print("In round check")
ExplodePlayers()
end
function ExplodePlayers()
print("Players exploded")
end
-- Just call InRound and it will do both
InRound()
This discussion is preserved as it was. New answers, comments, and votes are closed.
