Skip to main content

Lava Damage

Submitted by Pauldamasterman on
Im trying to trigger fire damage whenever you stand on one of the lava square but the script just wont trigger and im starting to run out of ideas didnt know if anyone on the forum had any ideas: The script im using is as follows: scn 0lava float lavaTimer short activated begin onTrigger if activated == 0 cast 00TrapLavaDamage player set activated to 1 set lavatimer to 3 endif end begin gameMode if activated == 1 if lavaTimer > 0 set LavaTimer to LavaTimer - getSecondsPassed endif if LavaTimer <= 0 set activated to 0 endif endif end any ideas anyone?
Karma: 0 (0 votes)

My first thought is that it's not working because it is not executing. The first rule of debugging is to make sure the code you are trying to debug is actually executing. Maybe the black squares are getting in the way. Try placing a squar of lava by itself somewhere so there is no doubt you are running into it, and place a message in the OnTrigger Block "Should be Burning Now..." or some such. I would also confine the "OnTrigger" to "OnTriggerActor Player" but that has nothing to do with this, unless the black squares or something else is tripping your script before you get anywhere near the lava. Add that just to be sure.
Karma: 0 (0 votes)

try to post a topic on the official cs forums, you are bound to get an answer there
Karma: 0 (0 votes)

you probably must exchange OnTrigger with OnTriggerMob look here: http://cs.elderscrolls.com/constwiki/index.php/OnTriggerMob
Karma: 0 (0 votes)