Prevent GetEvent Error in LuaLog
Posted: Fri Mar 17, 2023 10:53 am
I want to know if an event exists or not, I use:
But it does not prevent it from writing in the log:
How can I avoid this error in the log?
Edit: I have notice that I post under mods and scenarios and not in Lua Legion, if a moderator could move the thread to lua legion I'll be grateful
Code: Select all
local event = pcall(ScenEdit_GetEvent,'Event1')
Code: Select all
Function:ScenEdit_GetEvent (0) Error:Unable to identify the desired Event!
Edit: I have notice that I post under mods and scenarios and not in Lua Legion, if a moderator could move the thread to lua legion I'll be grateful
