Is there a way to check whether a property exists first, without causing a error that aborts the script?
I’m basically asking if theres a way to check wether go.get() == nil or some sort of go.exists equivilant
elseif message_id == hash("Damage") then
local DamageDealt = unpack(message)
if go.get(self.MainScript, "CanDodge") == true then
msg.post(".", "DodgeTriggered")
return
end
CalculateDamage(self,DamageDealt)
Here’s the code for reference, some entities have the dodge ability, some don’t.