You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oEnemy_Collision...

25 lines
425 B

if canbehit
{
if (hitbeam && other.dohit)
{
event_user(0)
with (other.id)
event_user(0)
if (myhealth <= 0 && frozen)
{
enemy_death_frozen()
global.kills += 1
}
}
if (!hitbeam)
{
with (other.id)
event_user(1)
}
if (other.pbeam == 0)
{
with (other.id)
instance_destroy()
}
}