FlagCapture event not working
Posted: Sun Jan 13, 2013 3:39 pm
Well, the topic's title explains all. I would like a series of function to run when the flag is captured (i.e. brought to it's capture region), but they are not running.
Below is the section of my lua responsible for handling this:
I do get points for returning the flag, but the functions don't run. I've also tried OnFlagReturn instead of OnFlagCapture, but it did not work either. I also had no errors related to this in my log.
Below is the section of my lua responsible for handling this:
Code: Select all
Flag_Capture = OnFlagCapture(
function(flag, character)
capturedflags = capturedflags + 1
ShowMessageText("level.ABC.flagcaptured", ATT)
end,
"flag1", "flag2"
)