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...

34 lines
689 B

if canbehit
{
if hitmissile
{
event_user(0)
with (other.id)
event_user(0)
}
else if (object_index == oMeboid || object_index == oMeboid2)
{
if ((other.object_index == oMissile || other.object_index == oMissileExpl) && global.icemissiles && (!other.smissile))
{
event_user(0)
with (other.id)
event_user(0)
}
else
{
with (other.id)
event_user(1)
}
}
else
{
with (other.id)
event_user(1)
}
if (myhealth <= 0 && frozen)
{
enemy_death_frozen()
global.kills += 1
}
}