// Remove LandGate shafts on exiting trigger area void main() { AssignCommand(GetEnteringObject(), PlaySound("as_mg_telepout1")); DestroyObject(GetNearestObjectByTag("LandGateShaftColor1")); DestroyObject(GetNearestObjectByTag("LandGateShaftColor2")); DestroyObject(GetNearestObjectByTag("LandGateShaftColor3")); }