this cog that i made that is connected to a plant 3do that heals the player that steps into it gradually isnt working heres the code--
can someone correct it please?
Code:
# Jedi Knight Cog Script # # This cog is not supported by LucasArts # ======================================================================================== symbols message Touched sector damageSector # the flex damageInterval=1.0 # how flex damage=4.0 # how thing player local # sound bushsound=bossk-1.wav local int type local end # ======================================================================================== code # ........................................................................................ Touched: player = GetSourceRef(); PlaySoundThing(bushsound, player, 1.0, -1, -1, 0x80); DamageThing(victim, damage, 0x1, victim); else { HealThing(victim, -damage); } return; # ........................................................................................ end
can someone correct it please?