How to specify damage type with entity.damage()?
Posted: Thu Nov 07, 2013 5:34 pm
The wiki says that damage can take an optional "damage type"...anyone know how to actually give it? I've tried entity.damage(1, game.forces.player, explosion) and "explosion". Console simply gives me "bad arg #2 to 'damage' (string expected, got table)", I've tried swapping the force and damage type and get the expected "table expected, got string". Tried even giving it a couple tables but no luck (i didn't really expect any with that lol)
so...help?
so...help?