Custom atributes
Posted: Fri Feb 14, 2020 1:41 pm
Hello,
I want to make a vehicle that releases drones when enemy is near. I wanted to add special inventory for drones.
it says
How to add a new atribute?
I want to make a vehicle that releases drones when enemy is near. I wanted to add special inventory for drones.
Code: Select all
if ent.name == "sf-reaver" and not ent.scarabey then
ent.scarabey=0
end
Code: Select all
LuaEntity doesn't contain key scarabey.