[Done] Check if an Enity exists in Control
Posted: Tue Jun 04, 2019 7:49 pm
Hi,
How can I check if an entity exists in Control?
So in Data.lau I can use
I'm setting the following:
But how can I check if "bio-"..tree_name.."-1" actually exists?
Thanks
How can I check if an entity exists in Control?
So in Data.lau I can use
Code: Select all
if data.raw.tree["xxx"] then
Code: Select all
local sage_1_tree_name = "bio-"..tree_name.."-1"
Thanks