I'm trying to make a double jump script, and I want it to have a few seconds of immunity when it drops. I used a boolean variable that will be deactivated a few seconds after the jump, but it gives me an error
on damage:
victim is player
damage was caused by fall
if {%player%.jump} is equal to true:
cancel event
Console error:
[ERROR]: Use 'attacker' and/or 'victim' in damage events (drakem.sk, line 22: if {%player%.jump} is equal to true:')
I guess I'm writing in the wrong order, can someone help me? pls
on damage:
victim is player
damage was caused by fall
if {%player%.jump} is equal to true:
cancel event
Console error:
[ERROR]: Use 'attacker' and/or 'victim' in damage events (drakem.sk, line 22: if {%player%.jump} is equal to true:')
I guess I'm writing in the wrong order, can someone help me? pls