entity.damage() use
Posted: Tue Apr 26, 2016 5:25 pm
What is the correct syntex/implementation for entity.damage()?
I want to give a small initial damage to a unit I'm creating.
Something like:
Thanks.
I want to give a small initial damage to a unit I'm creating.
Something like:
Code: Select all
if event.created_entity.name == "unit-cluster" then
entity.damage(1)
end