How to get damagetile working on plate press
Posted: Wed Sep 19, 2012 7:21 pm
Do we have a working example of
Floating around here anywhere? I'm mostly confused with how to utilise it.
This is what I have at the moment, with the intention of essentially making a kill tile triggered by a hidden plate.
It compiles and previews fine but crashes when the plate is triggered. "Bad argument #6 to 'damagetile' (String expect, got nil)"
I'm expecting that to mean that there's something wrong with the way I've written the parameters for the damage effect?
Code: Select all
damageTile(level, x, y, direction, flags, damageType, power)
This is what I have at the moment, with the intention of essentially making a kill tile triggered by a hidden plate.
Code: Select all
function rhymeend()
damageTile(5, 8, 29, 1, 6, physical, 999)
hudPrint("Text redacted cause spoilers.")
end
I'm expecting that to mean that there's something wrong with the way I've written the parameters for the damage effect?