5 lines
225 B
JavaScript
5 lines
225 B
JavaScript
const playerEntity = ecs.lookupPlayerEntity(entity.Owned.owner);
|
|
if (playerEntity !== other && other.Vulnerable) {
|
|
other.Vulnerable.damage({amount: Math.round(60 + Math.random() * 10), position: other.Position.toJSON()})
|
|
}
|