twinblade-infinity/objects/obj_player_control/Collision_obj_enemy_beams.gml

14 lines
189 B
Plaintext
Raw Permalink Normal View History

action_set_relative(1);
var __b__;
__b__ = action_if_variable(global.shield, 1, 1);
if __b__
{
{
global.player_hp += -30;
}
}
with (other) {
action_kill_object();
}
action_set_relative(0);